camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10583) Typo in Camel JSON Documentation
Date Fri, 09 Dec 2016 14:25:58 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-10583.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.19.0

Thanks it was the height field that was missing

> Typo in Camel JSON Documentation
> --------------------------------
>
>                 Key: CAMEL-10583
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10583
>             Project: Camel
>          Issue Type: Task
>          Components: documentation
>            Reporter: Bob Paulin
>            Assignee: Claus Ibsen
>            Priority: Trivial
>             Fix For: 2.19.0
>
>
> 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:
> {"age":30, "weight":70}
> The result is incorrect.  Should read:
> {"age":30, "height":190}
> This matches the JacksonMarshalViewTest unit test.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message