On Mon, May 14, 2012 at 1:38 PM, Julien Dreux <jdreux_at_justlexit.com> wrote:
> Answering my own question. This can be achieved by setting the following on
> the JacksonJsonProvider instance:
>
> JacksonJsonProvider jjp = new JacksonJsonProvider();
>
> jjp.configure(Feature.WRITE_NULL_MAP_VALUES, false);
>
> jjp.configure(Feature.WRITE_NULL_PROPERTIES, false);
Yup! You can also use @JsonSerialize(include=....) for per-class
configuration overrides.
> A full description of my solution can be found in response to my stack
> overflow question
> (http://stackoverflow.com/questions/10455061/forcing-jackson-to-ignore-type-properties-for-polymorphic-types-with-jersey).
> Thanks to Tatu Saloranta for all the help provided.
You are welcome & good luck!
-+ Tatu +-