I tried to use the code below to import Json data into python. The file is 355MB.
import json
CATALOG = json.loads(open('Myfile.json').read())
I got error message as below:
"File "D:.....py", line 8, in CATALOG = json.loads(open('Myfile.json').read()) File "C:\Python27\lib\json__init__.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) MemoryError"
I down size the file to 100MB, it imported successfully. Is there a size limit for Python json? Or I can reset the limit?
Thanks,