jsonPath problem

He there,

i have a json expression in my response body like

{ {"foo":[{"baz":"abc","bar":"xx"}, {"baz":"def","bar":"xy"}]}

and want to collect only those foo elements with attributes bar = xx.

Using the online-checker from https://jsonpath.curiousconcept.com/, the following expression works well

`
$.foo[?(@.bar=‘xx’)]

`

However, the following check

`

.check(jsonPath("$.foo[?(@.bar=‘xx’)]").findAll.saveAs(“fooList”)

`

results in an error: … could not extract : )]' expected but =’ found

What is the correct expression for selecting only those foo elements with ‘bar’ = ‘xx’

Thanks in advance

This implementation from Flow Communications used as default on this online tester is quite often completely wrong.
Since when is a single “=” a valid equality comparison operator?!