[Jersey] Re: nil instead of null

From: Jakub Podlesak <>
Date: Wed, 28 Sep 2011 14:32:15 -0700


On 28.9.2011 10:05, Tatu Saloranta wrote:
> <snip/>
>> Since I haven't heard from anyone about how to get Jersey's Natural
>> implementation to generate a null instead of a nil, I'm concluding that the
>> only solution is to wait for Jackson 1.9 to be GA and incorporate it into my
>> Jersey app.
> Yeah -- there may be other suggestions coming down, but I think
> jackson-based POJO binding is the preferred way at this point.

I do not know how to solve this using the JAXB based approach.
So the Jackson based POJO binding seems to be the only way.

> Jackson team is now in process of beta-testing 1.9; users have found
> couple of issues that we want to fix, but so far so good, and release
> should be out within about 1 week. It should be really useful update,
> esp. for anyone using JAXB annotations.
Great news, i can upgrade Jackson in Jersey right after the new Jackson
version is available.


> -+ Tatu +-