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