users@jersey.java.net

[Jersey] Unmarshalling JSON nulls?

From: Mike Summers <msummers57_at_gmail.com>
Date: Tue, 20 Nov 2012 17:22:18 -0600

Not using POJO mapping, using JAXB, Jersey appears to have a set of
predetermined default values for JSON nulls while unmarshalling via JAXB:
String => "", Integer => 0, ... is there anyway to easily control these
values either with configuration or annotations?

Using Jersey's POJO mapping I get what I want, which is to map JSON null to
Java null, but for other reasons we really need to use JAXB.

It seems like this should be simple however I'm drawing a blank.

Thanks.