Search This Blog

Wednesday, November 21, 2018

How to Output/Serve JSON from Google App Script

return ContentService.createTextOutput(JSON.stringify(result))
    .setMimeType(ContentService.MimeType.JSON);