I have the following JSON:
{ "value": { "activate": false } }
I want the JSONPath value to returned as true, but on applying the filter as below:
$.value.?(@.activate==false)
I get an invalid result.
Is there anything wrong with the JSONPath?
I have the following JSON:
{ "value": { "activate": false } }
I want the JSONPath value to returned as true, but on applying the filter as below:
$.value.?(@.activate==false)
I get an invalid result.
Is there anything wrong with the JSONPath?
The syntax for filter queries needs brackets.
$.value[?(@.activate==false)]