title: Parse JSON to Java Object with Jackson
body: <p>I'm here asking for your help after one week of headache :S</p>
  
  <p>I need to deserialize this JSON Output using Jackson</p>
  
  <pre><code>{
     "data": [
        {
           "id": "142065955831788",
           "name": "Name1",
           "link": "http://www.somelink.com",
        },
        {
           "id": "160212467350470",
           "name": "Name2",
           "link": "http://www.somelink2.com",
        }
        .
        .
        .
  }
  </code></pre>
  
  <p>I swear i've tried anything but I just can't make jackson deserialize that JSON.</p>
  
  <p>What am I missing?</p>
  
  <p>EDIT:</p>
  
  <p>I've created a class like this:</p>
  
  <p>Data.class</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class Data{
  
      @JsonProperty("data")
      private String name;
  
      @JsonProperty("data")
      private String link;
  
  //Getters + Setters
  </code></pre>
  
  <p>And this is my code for the mapping</p>
  
  <pre><code>ObjectMapper mObjectMapper = new ObjectMapper();
  
          ArrayList&lt;Data&gt; mDataList;
  
          mDataList = mObjectMapper.readValue(
                  url, /* The url returning the JSON */
                  mObjectMapper.getTypeFactory().constructCollectionType(
                          ArrayList.class, Data.class
                  )
          );
  </code></pre>
  
  <p>And i get this error message:</p>
  
  <blockquote>
    <p>Can not deserialize instance of java.util.ArrayList out of START_OBJECT token</p>
  </blockquote>