I\'ve been trying to create a Jersey REST Webservice. I want to receive and emit JSON objects from Java classes like the following:
@XmlRootElement
public cl
I don't know why this isn't the default setting, and it took me a while figuring it out, but if you want working JSON conversion with Jersey, add
com.sun.jersey.api.json.POJOMappingFeature
true
to your web.xml and all your problems should be solved.
PS: you also need to get rid of the @XmlRootElement
annotations to make it work