{
"users":[
{
"customerId":"2kXE3upOg5hnOG",
"ccoId":"paalle",
"userGroups":[
"CX Cloud Super Admins",
"CX Cloud Admins",
"aAutoGroupMarked12"
],
"emailId":"paalle@test.com",
"fullName":"Pavan Alle",
"isSelected":true
},
{
"customerId":"2kXE3upOg5hnOG",
"ccoId":"rtejanak",
"userGroups":[
"aTestUserGroupname1234"
],
"emailId":"rtejanak@test.com",
"fullName":"Raja Ravi Teja Nakirikanti"
}
],
"pagination":{
"pageNumber":1,
"totalPages":2,
"rowPerPage":10,
"totalRows":11
}
}
This is my JSON, where is want to extract ccoId, if and only if the userGroups have a group name as aAutoGroupMarked12. I am new to API automation and JsonPath. In my company, we were told to use io.rest-assured API's JsonPath class. can someone please give me suggestions on how should I write a path which returns me ccoId value