SyntaxError:意外令牌:Google App脚本中的<

时间:2019-10-09 15:29:40

标签: google-apps-script google-sheets

是Google App脚本的新手。

正在尝试将JSON导入Google表格以获取值。当我在单元格中输入=ImportJSON("http://cloud.anicuragroup-mail.com/testcon?tskey=13689&metric=all")时,会抛出语法错误

几乎相似的JSON具有不同的URL-=ImportJSON("http://cloud.mail.wefox.com/param-script?tskey=48083&metric=all")正在接受

function ImportJSONAdvanced(url, query, options, includeFunc, transformFunc) {
  var jsondata = UrlFetchApp.fetch(url);
  var object   = JSON.parse(jsondata.getContentText());

  return parseJSONObject_(object, query, options, includeFunc, transformFunc);
}

这是我用于导入JSON的链接-https://gist.github.com/paulgambill/cacd19da95a1421d3164 因为这是App Script的新功能。

请帮助!

0 个答案:

没有答案