Import JSON data into Google Sheets

前端 未结 4 1420
北荒
北荒 2021-01-30 05:50

I am pulling data from a web service and it is formatted as JSON. I am writing a Google Apps Script for Google Sheets that will populate the data for me. My problem is, I can\'t

4条回答
  •  渐次进展
    2021-01-30 06:06

    JSON.parse

    For those who are seeing this in 2011+, as pointed out by Henrique Abreu at the Google support forum, Utilities.jsonParse is/will be deprecated. As you can see from the thread, there's a bug with this function that it does not work when your keys are numbers, ie "1234".

    As suggested, you should be using JSON.stringify/parse.

提交回复
热议问题