Apr 9, 2018

How to Output/Serve JSON from Google App Script

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