How to use rest assured to get the list of all the zips from the below below structure?
{
"persons":[
{
"name": "",
"age":"",
"addresses": [
{
"city": "..",
"zip": ".."
}
]
}
]
}
Expected result is List<String>
which contains zip codes only using groovy gson path.
This would work: