title: Jackson 2.* and json to ArrayList<>
body: <p>I'm trying to deserialize a Json array to an ArrayList of objects. I have found some documentation on what i'm trying to do, but I'm getting an error on compile. </p>
  
  <p>Here is how I'm trying to approach it with Jackson 2.2.2:</p>
  
  <pre><code>ArrayList&lt;Friends&gt; list =  objectMapper.readValue(result, new TypeReference&lt;ArrayList&lt;Friends&gt;&gt;() {});
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>The method readValue(String, Class&lt;T&gt;) in the type ObjectMapper is not applicable for the arguments (String, new TypeReference&lt;ArrayList&lt;Friends&gt;&gt;(){})
  </code></pre>
  
  <p>I'm guessing some of the references I have been reading is based on an older version of Jackson. How can this be accomplished in Jackson 2.2 +</p>