Details
-
Type:
Task
-
Status: Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.19.0
-
Component/s: documentation
-
Labels:None
-
Estimated Complexity:Unknown
Description
Currently the http://camel.apache.org/json.html states:
Finally use the Camel JacksonDataFormat to marshall the above POJO to JSON.
from("direct:inPojoAgeView").marshal().json(TestPojoView.class, Views.Age.class);
Note that the weight field is missing in the resulting JSON:
The result is incorrect. Should read:
{"age":30, "height":190}This matches the JacksonMarshalViewTest unit test.