In Google Sheets, I have the following importJSON function (taken from here):
importJSON
function IMPORTJSON(url,xpath){ try{ var res = UrlFetchApp.fe