title: Parse Large Json File ( around 300 Mb ) to list of POJO
body: <p>I have a large JSON file roughly around 300 MB, I am parsing it using Jackson object mapper:-</p>
  <pre><code>private void parseJson(Object obj) {
  
  ObjectMapper map = new ObjectMapper();
  Map&lt;String,List&lt;POJOClass&gt;&gt; result = new HashMap&lt;&gt;();
  String str = map.writeValueAsString(obj);
  map.registerModule(new JSR10module());
  result = map.readValue(new ByteInputStream(str.getBytes(StandardCharSets.UTF_8)),
  new TypeReference&lt;Map&lt;String,List&lt;POJOClass&gt;&gt;&gt;
  () {});
  }
  </code></pre>
  <p>Parameter to parseJson is an Object which contains JSON String.</p>
  <p>This works fine for JSON files of around 150 MB, however, it starts to fail with <code>Heap Space error</code> when JSON files are around 250-300 MB. I am using <code>jackson 2.4.0</code></p>