Available as of Camel 2.16
The jolt: component allows you to process a JSON messages using an JOLT specification. This can be ideal when doing JSON to JSON transformation.
Maven users will need to add the following dependency to their
pom.xml for this component:
Where specName is the classpath-local URI of the specification to invoke; or the complete URL of the remote specification (eg: file://folder/myfile.json).
You can append query options to the URI in the following format,
Cache for the resource content when it is loaded.
Sets the output of the transformation to Hydrated as List or Maps, or JsonString as a String object containing the JSON.
Sets the input of the transformation to Hydrated as List or Maps, or JsonString as a String object containing the JSON.
The transform DSL to use for loading the provided specification. Available values Chainr, Shiftr, Defaultr, Removr and Sortr.
Camel provides a header by which you can define a different resource location for a specification. If this header is set then Camel uses this over the endpoint configured resource. This allows you to provide a dynamic specification at runtime.
A URI for the specification resource to use instead of the endpoint configured.
For example you could use something like
And a file based resource:
You can also specify what specification the component should use dynamically via a header, so for example: