Solved
Forum Discussion
premanand
9 years agoNew Contributor
Thanks Sanj. Its an array and using [0] works. I modified the coded as below.
import groovy.json.JsonSlurper
def response = messageExchange.response.responseContent
def textresponse = new JsonSlurper().parseText(response)
Actual = textresponse.BankAccount.FirstHolder[0]
assert "Myname" == Actual"