You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cgsk <ka...@gmail.com> on 2013/09/23 15:43:31 UTC
Null exclusion in Jackson not working
Hi there,
Iam using Jackson library for converting a POJO to json format. I want to
exclude null valued fields in the json output. I am using
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) and camel version
2.8.2. But the null fields are not skipped. Please suggest.
Regards,
CGSK
--
View this message in context: http://camel.465427.n5.nabble.com/Null-exclusion-in-Jackson-not-working-tp5740065.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Null exclusion in Jackson not working
Posted by cgsk <ka...@gmail.com>.
Yes it works in newer version of camel. Thanks.
--
View this message in context: http://camel.465427.n5.nabble.com/Null-exclusion-in-Jackson-not-working-tp5740065p5740074.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Null exclusion in Jackson not working
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Can you test with a newer Camel release to see if it works there.
On Mon, Sep 23, 2013 at 3:43 PM, cgsk <ka...@gmail.com> wrote:
> Hi there,
>
> Iam using Jackson library for converting a POJO to json format. I want to
> exclude null valued fields in the json output. I am using
> @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) and camel version
> 2.8.2. But the null fields are not skipped. Please suggest.
>
> Regards,
> CGSK
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Null-exclusion-in-Jackson-not-working-tp5740065.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen