users@jersey.java.net

[Jersey] Re: JSONConfiguration.FEATURE_POJO_MAPPING

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 15 Feb 2011 15:33:45 +0100

Hello Gili,

no, its not enabled by default, you have to explicitly set it to true.

When FEATURE_POJO_MAPPING is disabled, jersey-json module is used for
serializing/deserializing to/from json. This implementation is based on
JAXB (Jakub can add more info if you need, he is the author).

Pavel

On 02/13/2011 07:57 AM, Gili wrote:
> Hi,
>
> Is the JSONConfiguration.FEATURE_POJO_MAPPING configuration option enabled
> by default when Jersey detects
> org.codehaus.jackson.jaxrs.JacksonJsonProvider on the classpath or is this
> something we need to enable manually? Also, I don't fully understand the
> point of this option. What happens when it is disabled? Doesn't it disable
> JSON altogether?
>
> Thanks,
> Gili
>