I am using Jersey on GlassFish 3.1. I have a simple question about
consuming/producing JSON in this environment - is Jackson the default
provider for this? The reason I ask is that JSON
serialization/deserialization started working for me as soon as I added
@Consumes(MediaType.APPLICATION_JSON) and
@Produces(MediaType.APPLICATION_JSON) annotations. I did not have to
define a subclass of javax.ws.rs.core.Application and define it as a
context parameter in web.xml (as suggested by some articles on the web
such as this one:
http://architects.dzone.com/articles/putting-java-rest). Is GlassFish
doing all this by default?
Thanks.
Naresh