Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
For YAML to object marshalling, Camel provides integration with three popular YAML libraries:
Every library requires adding the special camel component (see "Dependency..." paragraphs further down). By default Camel uses the SnakeYAML library.
Using YAML data format with the SnakeYAML library
Using YAML in Spring DSL
When using Data Format in Spring DSL you need to declare the data formats first. This is done in the DataFormats XML tag.
And then you can refer to this id in the route:
Options for SnakeYAML Data Format
Dependencies for SnakeYAML
To use YAML in your camel routes you need to add the a dependency on camel-snakeyaml which implements this data format.
If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).