[ブログ]スプレッドシートをJSONでWebAPI化しようのコードです
呼び出し側のコードです。
function myFunction() {
const url = 'ウェブアプリのURL';
const response = UrlFetchApp.fetch(url);
const json = JSON.parse(response.getContentText());
const values = json.map(element => Object.values(element));
SpreadsheetApp.getActiveSheet().getRange(2, 1, values.length, values[0].length).setValues(values);
}