The XJ component allows you to convert XML and JSON documents without the need for intermediate Java objects.
URI Syntax: xj:resourceUri
Path parameters
Name | Description | Default | Type |
|---|---|---|---|
resourceUri (producer) | (required) Path to the template. The following is supported by the default URIResolver. You can prefix with: classpath, file, http, ref or bean. | — | String |
Query parameters
Name | Description | Default | Type |
|---|---|---|---|
transformDirection (producer) | (required) Transformation direction. Can be XML2JSON or JSON2XML. | — | TransformDirection |
The flow receives a POST request.
Then, converts JSON data to XML using the XJ component (transformDirection: JSON2XML).
Finally, logs the result.

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more