We get a lot of files coming from the eBay API and they are all "1 line JSON string".
MOST(99%) of these files have a size less than 1GB Sometimes 1 of the file will be bigger than 1 GB and in that case the regular json.loads() function that I have used till now will crash the execution of the script and output the simple "Killed" message on the stdout.
For example, this basic line of code
dlist = json.loads(big_string)
will crash. I tried bigjson.load(filename), but bigjson takes over and does not return a JSON object, it will return a bigjson object instead and everything inside that data structure will also become a bigjson object... My algorithm needs dict and list and so I cannot use bigjson.
What can I use to load a JSON String(not file) that is bigger than 1 GB
(I use python version 3.8)