title: Jackson serialize and wrap attributes into a new Object
body: <p>Serializing object of the following class yeilds string like</p>
  
  <pre><code>public class User implements Serializable{
  
      private Integer id;
      private String name;
      private Integer pinCode;
      private String city;
  
      // getters /setters
  }
  
  {"id":1,"name":"XYZ","pinCode":123456,"city":"ABC"}
  </code></pre>
  
  <p>But we want that attributes pinCode and city should be a part of new Json node say address node.</p>
  
  <p>So my expectation of the result is:</p>
  
  <pre><code>{
    "id": 1,
    "name": "XYZ",
    "address": {
      "pinCode": 123456,
      "city": "ABC"
    }
  }
  </code></pre>
  
  <p>Can this be accomplished without re-organizing the class structure and by using Json annotations </p>
  
  <p>on the exact opposite lines of @JsonUnwrapped</p>