0

file conversion

i am doing a sentiment analysis Machine learning project .. i downloaded amazon data which was in the .json format .. it is a big file , i want to convert it in csv .. but some error is occuring someone please help thanks in advance! Traceback (most recent call last): File "C:\Users\zainab\AppData\Local\Programs\Python\Python310\json to csv.py", line 5, in <module> data=json.load(json_file) File "C:\Users\zainab\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load return loads(fp.read(), File "C:\Users\zainab\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\zainab\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\zainab\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 1 (char 396)

29th Dec 2021, 8:28 PM
ZAINAB ASLAM
1 Answer
0
Do you really want us to find problems in code we don't see?
30th Dec 2021, 2:06 AM
Emerson Prado
Emerson Prado - avatar