I have a large JSON file. I need to estimate the size of the machine I need to open the file. Here is the operation that I need to do:
f = open('mybigfile.txt')
data = json.loads(f.read())
I could do sizeof
once I have the object. However, since I don't (yet) have enough memory to get data
, how would I estimate this?