Serialization pojo into different json structure
<p>I need to serialize a pojo into different json structure depending on whom I am sending request. Also I should be able to configure in some config that how field of pojo are mapped to json properties for a given request.</p>

<p>Can this be achived using jackson?
Is there some library or api to do this?</p>

<p>Edit: 
For example:</p>

<pre><code>public class Universal {
    private int id;
    private Date date;
    private String name;
    private Inner inner;
    private Map&lt;String,Object&gt; others;
    private List&lt;Inner&gt; inners;

}
public class Inner {
    private String value;
}
</code></pre>

<p>now above are two object i need to create dynamic json, one example for some of transformation is below</p>

<pre><code>{ 
  "id":"",//value will be  id of Universal
  "detials":{
       "name":"",//value will be name of Universal
   },
   "data":[], // array of value(field of Inner) from inners 
   "ext":{
      "prop1":""// value of this field will be some (key1) value from others 
    } 
}
</code></pre>