title: Unable to parse json into list of custom Java objects
body: <p>I am reading JSON from a file, and when trying to unmarshal the file to a java object, I am not getting expected array of custom Java object, however, getting array of LinkedHashMap</p>
  <p>Please see below objects</p>
  <pre><code>    public class Result&lt;T&gt;{
          private final Map&lt;String, T&gt; data = new LinkedHashMap&lt;&gt;();
      
           public Map&lt;String, T&gt; getAccounts(){
               return accounts;
           }
      }
  
  JSON -&gt;
  {
     &quot;data&quot;:{
       &quot;account&quot;:[
             {
                 &quot;accountDetails&quot;:{
                        &quot;accountId&quot;:&quot;123&quot;,
                        &quot;accountType&quot;:&quot;Decon&quot;
                 }
             },
             {
                 &quot;accountDetails&quot;:{
                        &quot;accountId&quot;:&quot;890&quot;,
                        &quot;accountType&quot;:&quot;ACX&quot;
                 }
             },
             {
                 &quot;accountDetails&quot;:{
                        &quot;accountId&quot;:&quot;123&quot;,
                        &quot;accountType&quot;:&quot;OOOP&quot;
                 }
             }
       ]
     }
  }
  
  
  @Getter
  @Setter
  @ToString
  public class Accounts{
     
     @Getter
     @Setter
     public static class AcountDetails{
        private String accountId;
        private String accountType;
     }
  }    
  </code></pre>
  <p>I am trying to read this Json as below</p>
  <pre><code> String accounts = Resource.asByteSource(Resources.getResource(&quot;account.json&quot;)).asCharSource(Charsets.UTF_8).read();
      ObjectMapper mapper = new ObjectMapper();
      Result&lt;List&lt;Accounts&gt; finalResult = mapper.readValue(accounts, Result.class);
  
  
  
   In finalResult variable , 
      
      I am getting a map with key as &quot;account&quot; and value as list
      But, instead of List of &quot;Accounts&quot; object, I am getting list of **LinkedHashMap**
  </code></pre>
  <p>So bascially after parsing, Instead of getting array of Accounts objects, I am getting array of LinkedHashMap</p>
  <p>Please find attached screenshot. Please advise</p>