Created
December 10, 2015 04:12
-
-
Save wmakeev/6593839cb5430c7b5f47 to your computer and use it in GitHub Desktop.
Simple JSON service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
var content = SpreadsheetApp | |
.openById(tableId).getSheetByName(sheetName).getDataRange().getValues() | |
return ContentService.createTextOutput() | |
.setMimeType(ContentService.MimeType.JSON) | |
.setContent(JSON.stringify(content)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment