You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2023/01/02 10:44:00 UTC

[jira] [Updated] (NIFI-2161) Add option to EvaluateJsonPath to skip adding attributes if the path does not match.

     [ https://issues.apache.org/jira/browse/NIFI-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Sampson updated NIFI-2161:
--------------------------------
    Status: Patch Available  (was: In Progress)

> Add option to EvaluateJsonPath to skip adding attributes if the path does not match.
> ------------------------------------------------------------------------------------
>
>                 Key: NIFI-2161
>                 URL: https://issues.apache.org/jira/browse/NIFI-2161
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Chris Sampson
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)