This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// call this function on a cell via =ImportJSON("http://...") and data will show up verbatim | |
function ImportJSON(url) { | |
var response = UrlFetchApp.fetch(url); | |
var data = JSON.parse(response.getContentText()); | |
if (!data.length) { | |
return []; | |
} | |
var rows = []; |