I have a response body as below.
{ "issue": [{ "reason": "SELECTED ITEMS WERE ISSUED", "isSuccess": true }] }
I want to validate : reason = "SELECTED ITEMS WERE ISSUED" and isSuccess = true.
I tried this :
- assert response.issue[0].reason == 'SELECTED ITEMS WERE ISSUED'
- match response.issue[0].isSuccess == true
but always get this error javax.script.ScriptException: TypeError: Cannot get property "0" of null in