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