Suppose I have a pojo:
import org.codehaus.jackson.map.*; public class MyPojo { int id; public int getId() { return this.id; } public void
There is also a nice annotation for this:
@JsonRootName(value = "my_pojo") public class MyPojo{ ... }
will generate:
{ "my_pojo" : {...} }