I am trying to test HTTP responses with Thunder Client in VS Code. The HTTP response I get is:
{
"currencies": [
{
"name": "Btc",
"count": 17
},
{
"name": "Ltc",
"count": 0
}
]
}
My goal is to test count
field in each of the item in the array bases on some condition/filter. The test option I want to use is JSON Query. I tried with json.currencies[name='Btc'].count
query, but the response is:
Query: json.currencies[name='Btc'].count > 0 => Actual: undefined
How can I check some property with specific conditions inside of the array?