I try to parse large json file (more 600Mo) with Java.
My json
file look like that:
{
\"0\" : {\"link_id\": \"2381317\", \"overview\": \"mjklmk
You have two choices:
-Xmx
argument, e.g. -Xmx1g
to give it 1 Gb of memory.json-simple has a streaming API. See https://code.google.com/p/json-simple/wiki/DecodingExamples#Example_5_-_Stoppable_SAX-like_content_handler
There are other libraries with good streaming parser, e.g. Jackson.