David-Byrne / Hangons

Web app to parse and save your Hangouts.json file into a more friendly format.
https://www.davidbyrne.io/Hangons/
MIT License
49 stars 10 forks source link

JSON file size restriction #20

Open TAKosice opened 2 years ago

TAKosice commented 2 years ago

Hello Is there any JSON file size restriction? I have a file larger than 0.5 GB. When it is uploaded, only red error message appears: https://prntscr.com/26n3o6i. I have no other idea, why it is so. Is there any possibility how io divide such large Hangouts JSON file? Thanks.

TheTechRobo commented 2 years ago

Are you sure the JSON is valid ? Try using the jq command line tool.

cat myfile.json | jq .

Does that work? If not, you've likely a corrupt file.

David-Byrne commented 2 years ago

There's not a hard-coded size limit, but a large enough JSON blob can definitely cause the parsing to fail if the browser can't allocate enough memory. This will depend on your browser, OS and machine (see #1 for a similar issue). I don't think Google Takeout gives the option of splitting the export into multiple smaller files I'm afraid, and it's not like a CSV format where we could stream a large file line by line

TAKosice commented 2 years ago

The file is valid. I have tried it in another browser with no other tabs loaded and hence, it works. Probably, Chrome is not able load so large file unlike from Firefox.