[Python] Is there a memory efficient and fast way to load big JSON files?

Discussão em 'Python' iniciado por Stack, Outubro 25, 2024.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página