Forgot to thank to tatu as well i ended up using his map extending class
implementation:
"Or, if you want fully dynamic name
just use Map<String, List<MyType>> by sub-classing:
public class ListWrapperWithMap extends HashMap<String,
List<ActualType>> {
public ListWrapperWithMap(String rootName, List<ActualType> value) {
this.put(rootName, value);
}
}
and then:
return new ListWrapperWithMap("rootName", listValue); "
So thank you to both :)
regards,
P.S:any idea when the final 1.8 version is released?
--
View this message in context: http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6422167.html
Sent from the Jersey mailing list archive at Nabble.com.