I have a 2.8 GB json file that I want to load . But directly loading to memory leads to memory exhaustion . So the idea may be to load the data in chunks or any other efficient way . What is the most efficient way of doing this?
Code examples will be appreciated
Thanks for the help
This is a simple, streaming parser for processing large JSON documents. Use it for parsing very large JSON documents to avoid loading the entire thing into memory, which is how just about every other JSON parser for PHP works.