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

Add option to EvaluateJsonPath to skip adding attributes if the path does not match.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • Extensions
    • None

    Description

      Currently, if one of the paths configured for EvaluateJsonPath does not match, the "Null Value Representation" property provides two options - "empty string" and "the string 'null'". Unfortunately, if the goal is to check whether or not the path is present, neither of these options provides a very concise and accurate way of determining whether or not the path actually matched the JSON.

      We should add a third option for this property: "Skip Attribute". This value would be valid only if the "Destination" property is set to "flowfile-attribute". In this case, if the path does not match, the attribute will not even be added.

      Attachments

        Issue Links

          Activity

            People

              Chris S Chris Sampson
              markap14 Mark Payne
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m