Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4962

FlattenJson processor add unexpected backslash after flatten

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • Extensions
    • None

    Description

      Flatten Json will unexpectedly prefix slash with a backslash.
      This cause data miss match problem after flatten when json value contains url or other slash character.

      Detail example are in the attachments.

      Input, output example

      {"col3":["http://localhost:8080/nifi31","http://localhost:8080/nifi32"]}

      after flatten-

      {"col3":["http:\/\/localhost:8080\/nifi31","http:\/\/localhost:8080\/nifi32"]}

      Attachments

        1. 35E5F7FD-DD79-4556-8BF0-021EEF948520.png
          264 kB
          Deon Huang
        2. CEECDC79-7CA2-468C-A057-7A3264EB46BB.png
          55 kB
          Deon Huang
        3. 34BFD277-F8FA-4ACE-BE1F-536B0BD6D10A.png
          55 kB
          Deon Huang

        Issue Links

          Activity

            People

              deonashh Deon Huang
              deonashh Deon Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: