I am having one issue with Spring MVC and its json support. I make one ajax call to get some data and I want to get that data in json format including the root value. I am
Wrap your "Issuers" in a generic holder-object. That's what I do when working with Jackson and Spring.
class JSONResponse {
private Object collection;
public JSONResponse(Object collection) {
this.collection = collection;
}
public Object getCollection() {
return collection;
}
}
...
@RequestMappin(...)
@ResponseBody
public Object someHandler(...) {
...
return new JSONResponse(issuers);
}