I have an object that I\'d like to serve in JSON as a RESTful resource. I have Jersey\'s JSON POJO support turned on like so (in web.xml):
This did it for me - Jersey 2.3.1
In the web.xml file :
Jersey Web Application org.glassfish.jersey.servlet.ServletContainer jersey.config.server.provider.packages ;org.codehaus.jackson.jaxrs
In the pom.xml file :
org.glassfish.jersey.media jersey-media-json-jackson 2.3.1