I'm trying to filter this JSON by green vegetables :
[
{
"vegetable": {
"name": "peas",
"color": "green"
},
"meet": {
"name":"beef",
"color":"red"
}
},
{
"vegetable": {
"name": "potato",
"color": "yellow"
},
"meet": {
"name":"lamb",
"color":"brown"
}
}
]
with a JSONPath with gatling like
val searchGreenVegetable = exec(http("Search green vegetable")
.get("http://myUrl/json/")
.check(jsonPath("""$..vegetable[?(@.color=="green")]""").exists)
)
but I always have the "found nothing" error in the gatling report.