title: Read json file with multiple objects into a map java
body: <p><strong>Note:</strong> Before posting this here, I spent a chunk of time trying to look for a solution about this here, but couldn't find any.</p>
  
  <p>I have this JSON file that contains multiple json objects that I want to read into a map, each object is of the format <code>{"key1":"value1", "key2":"value2"}</code>, I tried </p>
  
  <pre><code>Map&lt;String, String&gt; map = MAPPER.readValue(fixture("fixtures/file_name.json"), new TypeReference&lt;Map&lt;String, String&gt;&gt;() {});
  </code></pre>
  
  <p>as that worked for reading a file into a map of map of list (<code>Map&lt;String, Map&lt;String, List&lt;String&gt;&gt;&gt;</code>). Is there something that should be different?</p>
  
  <p>My <code>.json</code> file looks like</p>
  
  <pre><code>[
     {"key1":"value1_1", "key2":"value2_1"},
     {"key1":"value1_2", "key2":"value2_2"},
     ...
  ]
  </code></pre>
  
  <p>I have also another json file that I want to read into a map, that looks like</p>
  
  <pre><code>[
     "key1": {
         "key1_1": [
             {"key1_1_1":"value1", "key1_1_2":"value2"},
             ...
         ],
         ...
      },
      "key2":&lt;int&gt;,
      "key3":{
          "key3_1":[],
          ...
      },
      ...
      "key_n":&lt;string&gt;,
      ...
  ]
  </code></pre>
  
  <p>Can you help me map those files correctly, without writing too many lines of code?</p>