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

FlattenJson processor add unexpected backslash after flatten

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: Extensions
    • Labels:
      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. CEECDC79-7CA2-468C-A057-7A3264EB46BB.png
          55 kB
          Deon Huang
        2. 35E5F7FD-DD79-4556-8BF0-021EEF948520.png
          264 kB
          Deon Huang
        3. 34BFD277-F8FA-4ACE-BE1F-536B0BD6D10A.png
          55 kB
          Deon Huang

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: