In Selecting/filtering with JSON Query the OP reported a similar problem to mine. In my case i have this json response
{
"status": "ok",
"featuresSelected": [
{ "feature": "x1", "price": "1.23" },
{ "feature": "u7", "price": "4.56"},
... many more
]
}
I want to check if the price of u7
is 4.56
. This is my line
json.featuresSelected[feature=u7].price equal 4.56
// changing it to
json.featuresSelected[feature=u7].price equal "4.56"
// or
json.featuresSelected[feature="u7"].price equal 4.56
// or
json.featuresSelected[feature="u7"].price equal "4.56"
returns the same result.
But i get:
Query: json.featuresSelected[feature=u7].price equal to 4.56 => Actual: undefined.
Any ideas what i am doing wrong?
Versions
I updated to
- thunder-client 1.20.1
- Visual Studio Code Version: 1.71.2