The following JsonPath expression, $[?(@.result_date === null && (@.realized > 0 || @.report_period == 'Q1'))] will fail with "Unexpected character while parsing path query: ("
It appears the paranthesis are reserved for ?() evaluator and not accepted in the expression anywhere. I was not able to find an escape character that will make this work. I verified the expression online at jsonpath.com and it works over there.
The following JsonPath expression,
$[?(@.result_date === null && (@.realized > 0 || @.report_period == 'Q1'))]
will fail with "Unexpected character while parsing path query: ("It appears the paranthesis are reserved for ?() evaluator and not accepted in the expression anywhere. I was not able to find an escape character that will make this work. I verified the expression online at jsonpath.com and it works over there.
Source/destination JSON
Expected behavior
I expected SelectToken(jsonPath) for the above expression to return some array items.
Actual behavior
SelectToken just throws an error : "Unexpected character while parsing path query: ("
Steps to reproduce