Uploaded image for project: 'Red Hat Build of Apache Camel for Quarkus'
  1. Red Hat Build of Apache Camel for Quarkus
  2. CEQ-1089

JSONPath has a different output on Native than on JVM

XMLWordPrintable

    • 0

      Following route

                  from("direct:body-as-string")
                      .split().jsonpathWriteAsString("$.testjson.users")
                      .log("Body is: ${body}");
      

      has following output on JVM:

      Body is: {"name":"Jan","age":28}
      Body is: {"age":10}
      Body is: {"name":"Tom","age":50}
      

      Whereas in native the output is following:

      Body is: {name=Jan, age=28}
      Body is: {age=10}
      Body is: {name=Tom, age=50}
      

      Is this just a formatting issue (maybe something similar to locales with native) or could it point to different behavior on JVM vs Native?

        1.
        Documentation Sub-task Closed Undefined Unassigned
        2.
        Productization Sub-task Closed Undefined Unassigned
        3.
        Review Test Sub-task Closed Undefined Unassigned
        4.
        Development Sub-task Closed Undefined Unassigned

            rhagallice Alexandre Gallice
            mmuzikar Martin Muzikar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: