Importing JSON line with Python


#1

Hi,

I was a bit surprised to see all of my scripts fail due to a change in the JSON formating import.io presents it’s data.
I was doing before a normal parsing of JSON using Python but I now realized that it is a different format: JSON line due to the following error when trying to do a rr = json.loads(r.content):

raise ValueError(errmsg(“Extra data”, s, end, len(s)))
ValueError: Extra data: line 2 column 1 - line 59 column 1 (char 12296 - 754818)

where r is the response from the https://data.import.io/extractor/{0}/json/latest?_apikey={1}

Does anyone have experience with this?