Created 11-29-2017 11:31 AM
Hi I tried to remove duplicates
I have a json like below
{
"message":"XXXX",
"id":"1"
}
I want to remove all json with the same id
I try using detect duplicates processor
I try Cashe Entry Identifier ${id} but it's not worked as expected
Created 11-29-2017 02:36 PM
If you want to use ${id} as your cache entry identifier, then you need a flow file attribute called id.
You could use EvaluateJsonPath first with an expression of id = $.id to extract the id from the json into an attribute.
Created 11-29-2017 11:50 AM
@Matt Burgess I will appricate your support
Created 11-29-2017 02:36 PM
If you want to use ${id} as your cache entry identifier, then you need a flow file attribute called id.
You could use EvaluateJsonPath first with an expression of id = $.id to extract the id from the json into an attribute.
Created 12-03-2017 11:31 AM
Thanks @Bryan Bende It's worked for me