You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Richard Kettelerij (Commented) (JIRA)" <ji...@apache.org> on 2012/04/02 01:04:26 UTC

[jira] [Commented] (CAMEL-5135) Support excluding POJO fields during JSON marshalling

    [ https://issues.apache.org/jira/browse/CAMEL-5135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243892#comment-13243892 ] 

Richard Kettelerij commented on CAMEL-5135:
-------------------------------------------

trunk 1308211.

Will update the docs and release notes asap.
                
> Support excluding POJO fields during JSON marshalling
> -----------------------------------------------------
>
>                 Key: CAMEL-5135
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5135
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-gson, camel-jackson
>            Reporter: Richard Kettelerij
>            Assignee: Richard Kettelerij
>             Fix For: 2.10.0
>
>
> Jackson has the notion of [JSON views|http://wiki.fasterxml.com/JacksonJsonViews] to exclude POJO fields from being marshalled/serialized to JSON. This feature is currently not accessible when using the Camel JacksonDataFormat. This JIRA aims to extend the JacksonDataFormat with support for JSON views.
> The GSON dataformat is a very similar to the JacksonDataFormat. To keep the feature set of both dataformats aligned the GSON dataformat will also be extended. The GSON library supports excluding POJO fields through the notion of [ExclusionStrategies|http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/ExclusionStrategy.html]. The current GsonDataFormat already allows for the use of an ExclusionStrategy, this JIRA just makes it easier accessible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira