Convert Google Sheet into JSON Web App

Post a Comment
function doGet() { var content = getSheetData(); var contentObject = {GoogleSheetData: content} return ContentService.createTextOutput(JSON.stringify(contentObject) ).setMimeType(ContentService.MimeType.JSON); } function getSheetData() { var ss= SpreadsheetApp.getActiveSpreadsheet(); var dataSheet = ss.getSheetByName('DATA'); var dataRange = dataSheet.getDataRange(); var dataValues = dataRange.getValues(); return dataValues; } https://codewithcurt.com/convert-google-sheet-into-json-web-app/
ainuxs
catatan2 yang mungkin bermanfaat suatu hari nanti....

Related Posts

:

Subscribe Our Newsletter