Is there a memory efficient and fast way to load big json files in python?

Posted by user210481 on Stack Overflow See other posts from Stack Overflow or by user210481
Published on 2010-03-08T10:34:15Z Indexed on 2010/03/08 10:36 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

I have some json files with 500MB. If I use the "trivial" json.load to load its content all at once, it will consume a lot of memory.

Is there a way to read partially the file? If it was a text, line delimited file, I would be able to iterate over the lines. I am looking for analogy to it.

Any suggestions? Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about big