Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10583

Typo in Camel JSON Documentation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.19.0
    • documentation
    • 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:

      {"age":30, "weight":70}

      The result is incorrect. Should read:

      {"age":30, "height":190}

      This matches the JacksonMarshalViewTest unit test.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            bobpaulin Bob Paulin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: