Skip to content Skip to sidebar Skip to footer

Jsondecodeerror: Extra Data: Line 1 Column 228 (char 227)

I am using Ipython to do some data analysis, I can't load the JSON file. Please help me to load this JSON file in IPython. And I also want to skip same words in the first line

Solution 1:

Here is a suggestion for loading the file:

withopen('Path/to/file', 'r') as content_file:
    content = content_file.read()
records = json.loads(content)

The root object in your json will be in your records variable

Post a Comment for "Jsondecodeerror: Extra Data: Line 1 Column 228 (char 227)"