When Serializing a pojo with JAXB-JSON it can wrap the root element name around the object data. For example:
@XmlRootElement(name="worker")
public class Employee {
private int id;
private String name; //...
}
Can give JSON such as :
{ "worker" : { "id" : 1, "name" : "Ashraf" } }
What are some ways to achieve this using Jackson JSON serialization?