title: Jackson: Object Mapper annotations to deserialize a inner collection
body: <p>I want to convert the following json into a java object, using <strong>as much as possible annotations</strong>.</p>
  
  <pre><code>{"user":{
    "id":1,
    "diets":[
      {"diet":{
        "name":"...",
        "meals":[]
        }
      }
    ]
   }
  }
  </code></pre>
  
  <p>I'm getting trouble with the collection diets. I tried to use <code>@JsonProperty</code> but it doesn't work properly. Is there a special annotation for map inner aggregates?</p>
  
  <p><strong>Diet.java</strong></p>
  
  <pre><code>    @JsonRootName(value = "diet")
      public class Diet {
  
          @JsonProperty(value="name")
          private String name;
          @JsonProperty(value="meals")
          private List&lt;Meal&gt; meals;
          private User user;
  
          // Rest of the class omitted.
  }
  </code></pre>
  
  <p><strong>User.java</strong></p>
  
  <pre><code>@JsonRootName(value = "user")
  public class User {
  
      @JsonProperty("id")
      private long id;
      @JsonProperty("diets")
      private List&lt;Diet&gt; diets = new ArrayList&lt;Diet&gt;();
  
      // Rest of the class omitted.
  }
  </code></pre>
  
  <p>Thanks!</p>