I'm working on an android project and I have a json response to parse.
{"key1":"val1","key2":"val2","key3":[{...}, {...}, {...}... upto 5000 elements]}
This is how my current json looks.
I'm using HttpUrlConnection for parsing response as a stream.
I'm also using gson to parse this response using custom deserializers.
Everything works fine, but the problem comes one heap starts growing for those 5000 objects.
I'm looking for a way where I can take objects individually and store them in local db.
Any suggestions?