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

FlattenJson processor add unexpected backslash after flatten

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              deonashh Deon Huang
              Reporter:
              deonashh Deon Huang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment