Hi,
JsonSlurper is a good option for parsing and checking the properties of your response, you will see a lot of examples of this e.g.
see the last part of https://www.packtpub.com/books/content/restful-web-service-mocking-and-testing-soapui-raml-and-json-slurper-script-assertion
like this:
import groovy.json.JsonSlurper
def jsonString = """{
"invoice": {
"id": "12345",
"companyName": "Test Company",
"amount": 100.0
}
}"""
def slurper = new JsonSlurper().parseText(jsonString)
assert slurper.invoice.id=='12345'
assert slurper.invoice.companyName=='Test Company'
assert slurper.invoice.amount==100.0
Could you perhaps post your whole JSON sample and we can get it sorted?
Regards,
Rupert