I am importing JSON data from a public database URI http://data.seattle.gov/api/views/3k2p-39jp/rows.json and the rows go as far as 445454. Using the following code I am co
Streaming pull parser is the way. I recommend GSON, as this has small memory footpring (just pull parsing is about 16K , jackson is way bigger)
Your code is problematic because you allocate:
and this is slow, and gives you memory meltdown.
In case you need java objects out of your JSON data , you may try my small databinding library building on GSON (shameles self advertising off):
https://github.com/ko5tik/jsonserializer