Details
-
Task
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
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.