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

Gareth Western commented on CAMEL-8399:
---------------------------------------

Thanks for the quick fix, [~davsclaus], but did you see my previous comment? 
I'm not sure that what I originally proposed makes sense when using Json. Or 
does it?

> Support setMode in JsonDataFormat
> ---------------------------------
>
>                 Key: CAMEL-8399
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8399
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xstream
>    Affects Versions: 2.14.1
>            Reporter: Gareth Western
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.14.2, 2.15.0
>
>
> CAMEL-7592 introduced the ability to customise the XStream mode, however 
> org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream still sets 
> the mode explicitly to NO_REFERENCES.
> I think someone just has to update the method to do the following instead:
> {code}
>                 if (getMode() != null) {
>                     xs.setMode(getModeFromString(getMode()));
>                 }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to