wmakeev
12/10/2015 - 4:12 AM

Simple JSON service

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))
  
}