[
https://issues.apache.org/jira/browse/CAMEL-24669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113769#comment-18113769
]
Federico Mariani commented on CAMEL-24669:
------------------------------------------
PR: https://github.com/apache/camel/pull/26260
_Claude Code on behalf of Croway_
> camel-groovy - groovyJson/groovyXml: support Jackson 3 nodes and fix
> prettyPrint=false output
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-24669
> URL: https://issues.apache.org/jira/browse/CAMEL-24669
> Project: Camel
> Issue Type: Bug
> Components: camel-groovy
> Affects Versions: 4.22.0
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
>
> The {{groovyJson}} and {{groovyXml}} data formats have two issues:
> * Jackson 3.x nodes ({{tools.jackson.databind.JsonNode}}) are not converted
> to a Map, only Jackson 2.x ones are. They fall back to raw bytes, so
> {{groovyXml}} outputs JSON instead of XML.
> * {{groovyJson}} with {{prettyPrint=false}} encodes the JSON twice, producing
> a quoted JSON string instead of a JSON object.
> _Claude Code on behalf of Croway_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)