Federico Mariani created CAMEL-24669:
----------------------------------------
Summary: 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
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)