ImportJSON icon indicating copy to clipboard operation
ImportJSON copied to clipboard

ImportJsonFromSheet - SyntaxError: Unexpected token: a (line 616)

Open ebolamonk3y opened this issue 7 years ago • 3 comments

Line 615 and 616: } Logger.log(jsonText); return JSON.parse(jsonText);

Not sure why this is throwing an error when just grabbing data from another sheet.

ebolamonk3y avatar May 03 '18 18:05 ebolamonk3y

if you try var jsonRange = source.getRange(1,1); /* var jsonRange = source.getRange(1,1,source.getLastRow()); */ and put all the json in A1 it seems to work

iveskins avatar May 10 '18 02:05 iveskins

I'm trying to have the new query append to existing sheet and build up a database of results overtime. It doesn't seem possible with GoogleSheets.

ebolamonk3y avatar May 10 '18 03:05 ebolamonk3y

Try to sringify it: var xxx = JSON.parse(JSON.stringify(jsonString));

rewaza avatar Aug 22 '20 03:08 rewaza