users@jersey.java.net

[Jersey] Re: Ignore unknown JSON properties

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Wed, 30 Mar 2011 17:17:19 -0700

On Wed, Mar 30, 2011 at 3:48 PM, Tauren Mills <tauren_at_groovee.com> wrote:
> Tatu,
> This is exactly what I was looking for! It would be nice to configure this
> on a per-pojo basis with some sort of annotation in the pojo. Right now its
> an all-or-nothing solution.

You mean like using:

@JsonIgnoreProperties(ignoreUnknown=true)

on class? :-)

With respect to configuring ObjectMapper to use: I think Jakub just
sent the snippet for creating ObjectMapper provider -- it's been a
while since I wrote one.
But let me know if you didn't see it, should be able to find from
mailing list archive.

-+ Tatu +-