On Fri, Sep 23, 2011 at 10:42 AM, nbaliga <nbaliga_at_cleartrial.com> wrote:
> After attaching sources and doing some debugging and stepping through, it
> looks like the JAXB XML Serializer instructs the Stax2JacksonWriter to write
> the nil true value.
>
> So Jackson is essentially doing what its told.
>
> Since I want to use JAXB annotations for both JSON and XML generation,
> cannot use pure Jackson approach, it doesn't look like there's any way out
> of this situation.
Not sure if this would help, but Jackson 1.9 has full support for root
element wrapping/unwrapping (including deserialization, not just
serialization). It will be out soon (i.e. within weeks), and the
latest snapshot should allow you to verify its working.
-+ Tatu +-