Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Created December 10, 2015 04:12
Show Gist options
  • Save wmakeev/6593839cb5430c7b5f47 to your computer and use it in GitHub Desktop.
Save wmakeev/6593839cb5430c7b5f47 to your computer and use it in GitHub Desktop.
Simple JSON service
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