Member since
04-20-2018
2
Posts
0
Kudos Received
0
Solutions
02-27-2023
05:51 AM
So I'm working with a batch JSON file with the following value : [
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "FR",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "FR",
"resourceType": "Party"
}
]
So I'm working with a batch JSON file with the following value :
[
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "FR",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "FR",
"resourceType": "Party"
}
] I'm able to extract attributes from JSON by using EvaluateJsonPath processor. UpdateAttribute is the processor where i want to extract the attributes. Please find below snapshot of UpdateAttribute processor when value of "country="ES" I want get json file like this: [
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
},
{
"eventType": "UPDATE",
"eventTime": "2021-12-14T12:34:56.789012Z",
"country": "ES",
"resourceType": "Party"
}
]
... View more
Labels:
- Labels:
-
Apache NiFi