I am a beginner with Json and trying to read the Automotive 5 core Json file from here : http://jmcauley.ucsd.edu/data/amazon/, with the following code
Python code:
import json
with open('Automotive_5.json') as f:
data = json.load(f)
I keep getting JSONDecodeError: Extra data
Complete Traceback:
runfile('C:/Users/Paul/Google Drive/erg2.py', wdir='C:/Users/Paul/Google Drive')
Traceback (most recent call last):
File "<ipython-input-122-72136ec568c5>", line 1, in <module>
runfile('C:/Users/Paul/Google Drive/erg2.py', wdir='C:/Users/Paul/Google Drive')
File "C:\Users\Paul\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)
File "C:\Users\Paul\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Paul/Google Drive/erg2.py", line 10, in <module>
data = json.load(f)
File "C:\Users\Paul\Anaconda3\lib\json\__init__.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\Paul\Anaconda3\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Paul\Anaconda3\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
JSONDecodeError: Extra data
reviews_Automotive_5.json.gz. Did you uncompress this file ?