문제

Whats an easy way to get the contents of a Google Spreadsheet as JSON using Google Apps Script?

도움이 되었습니까?

해결책

In the Google Spreadsheet go to Tools > Scripts > Script Editor

Insert this code and hit the play button

function getValues() {
  var range = SpreadsheetApp.getActiveSheet().getDataRange();
  var json = Utilities.jsonStringify(range.getValues())
  Browser.msgBox(json);
}​
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top