users@jersey.java.net

Re: [Jersey] custom serializer not getting called

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Wed, 15 Sep 2010 11:17:07 -0700

On Tue, Sep 14, 2010 at 11:54 PM, JamesKPublic <jameskpublic_at_yahoo.com> wrote:
> I'm trying to use a custom JSON serializer for my class, but for some
> reason, the framework is not invoking the serializer. I've set a breakpoint
> to confirm that it's not getting called, and the output looks like the
> default formatting.
> Is this bit of wiring that I forgot to perform?

It might be as simple as not registering Jackson JAX-RS Provider?
Jersey defaults to using another json serializer for backwards
compatibility reasons.

-+ Tatu +-