Forum Discussion

premanand's avatar
premanand
New Contributor
8 years ago

REST - Script Assertion fails due to square brackets in Json response.

I'm trying to do a script assertion for my project, I need to check the FirstHolder name matches with the expected name. I'm using the below code.   import groovy.json.JsonSlurper def response = m...
  • sanj's avatar
    8 years ago

    its its a bracket its an array so maybe try [0]

    Just throwing an idea