Marshalling is converting Objects (Plain Old Java Object) to a data format (JSON, XML etc)
.marshal().json(JsonLibrary.Jackson, DataType.class)
.marshal(jacksonDataFormat)
.marshal(new JacksonDataFormat(DataType.class))
.marshal().bindy(BindyType.Csv, DataType.class)
.marshal().jaxb(DataType.class)
Unnarshalling is converting a data format (JSON, XML etc) to Objects (Plain Old Java Object)
.unmarshal().json(JsonLibrary.Jackson, DataType.class)
.unmarshal(jacksonDataFormat)
.unmarshal(new JacksonDataFormat(DataType.class))
.unmarshal().bindy(BindyType.Csv, DataType.class)
.unmarshal().jaxb(DataType.class)
Note for direct conversion between data format also Assimbly docconverter can be used.
See Example processor for code.