title: Exception java.util.LinkedHashMap cannot be cast to java.util.List
body: <p>While working around following code I got the exception given below.    </p>
  
  <pre><code>List&lt;Map&lt;String, Object&gt;&gt; obj = mapper.readValue(result.getBody(), new TypeReference&lt;Map&lt;String,Object&gt;&gt;(){});
  
  for (Map&lt;String, Object&gt; map : obj) {
      for(Map.Entry&lt;String, Object&gt; entry : map.entrySet()){
          System.out.println("Key : "+entry.getKey()+" Value is: "+entry.getValue());
      }
  }
  </code></pre>
  
  <p><strong>Stacktrace</strong>: <code>java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.List</code></p>