I have a huge JSON file (1GB) which is basically an array of objects in the below format
[{"x":"y", "p":"q"}, {"x1":"y1", "p1":"q1"},....]
I want to parse this file such the all the data is not loaded in memory.
Basically I want to get for eg: first 1000 objects in the array to memory process it and then get the next 1000 objects into the memory process it and so on util all data is read.
Is there any JSON library that supports this use case? I currently use Gson. However it loads all the data to memory when I call gson.fromJson()
Thanks in advance for the help.