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

Chris Sampson reassigned NIFI-2161:
-----------------------------------

    Assignee: Chris Sampson

> 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
>
> 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)

Reply via email to