[Jersey] Re: nil instead of null

From: nbaliga <>
Date: Fri, 23 Sep 2011 08:21:09 -0700 (PDT)

I tried using pure Jackson approach by enabling the POJO Mapping Feature and
then creating a ObjectMapper Provider via a ContextResolver.

However due to the mess that Jackson 1.7 and 1.8 is in w.r.t. JAXB
Annotation support, that is a dead end.

If I use the POJO Mapping Feature WITHOUT supplying my own ObjectMapper,
i.e. using the default that Jersery instantiates, then I lose out on the
Root Unwrapping feature wherein the XmlRootElement's name property is

So, I need to try and find a solution for my JSON "attribute":{"nil":true}
generation problem via Jersey's interface AND using the JAXBContextResolver

So, once again, any help in this area would be appreciated.

View this message in context:
Sent from the Jersey mailing list archive at