Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-18560

JSONPath has a different output on Native than on JVM

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: