title: Jackson JSON Deserialization with Root Element
body: <p>I am having a question with Jackson that I think should be simple to solve, but it is killing me.</p>
  
  <p>Let's say I have a java POJO class that looks like this (assume Getters and Setters for me):</p>
  
  <pre><code>class User {
      private String name;
      private Integer age;
  }
  </code></pre>
  
  <p>And I want to deserialize JSON that looks like this into a User object:</p>
  
  <pre><code>{
    "user":
      {
        "name":"Sam Smith",
        "age":1
    }
  }
  </code></pre>
  
  <p>Jackson is giving me issues because the User is not the first-level object in the JSON.  I could obviously make  a UserWrapper class that has a single User object and then deserialize using that but I know there must be a more elegant solution.</p>
  
  <p>How should I do this?</p>