Hi Mike,
Thanks for your quick reply. I am using nifi 1.5.0 release. I am not sure
what you mean by "trying against the latest version of java lib?"
If you could further elaborate please?
Also is there any other way to achieve this outcome (either by changing the
path or by using a completely different processor other than
evaluatejsonpath?)

Thanks
Anil


On Fri, Apr 27, 2018 at 3:37 PM, Mike Thomsen <[email protected]>
wrote:

> The JsonPath processor uses an older version of the Java library. I think
> it's v2.0. Have you tried that against the latest version of the Java lib?
> I know there's at least one JsonPath feature the version we use doesn't
> support.
>
> On Fri, Apr 27, 2018 at 3:14 PM Anil Rai <[email protected]> wrote:
>
> > Experts,
> >
> > Input JSON
> > -------
> > { "fields":[
> >         {
> >             "maskType": "a",
> >             "name": "Id"
> >         },
> >         {
> >             "maskType": "b",
> >             "name": "Type"
> >         }
> > ]
> > }
> > -----------
> >
> > JsonPath : $.fields[?(@.name=="Type")].maskType
> >
> > --------------
> >
> > Expected Output
> > -------
> > [
> > "b"
> > ]
> > --------
> >
> > But EvaluateJsonPath processor is giving me []
> >
> > Any idea?
> >
> > Thanks
> > Anil
> >
>

Reply via email to