users@jersey.java.net

[Jersey] Re: nil instead of null

From: nbaliga <nbaliga_at_cleartrial.com>
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
ignored.

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
approach.

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

--
View this message in context: http://jersey.576304.n2.nabble.com/nil-instead-of-null-tp6821681p6824607.html
Sent from the Jersey mailing list archive at Nabble.com.