Solved
Forum Discussion
premanand
7 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"
Related Content
- 2 years agostman
- 8 years agorvteja1990
- 8 years agomgroen2
Recent Discussions
- 7 days agoemoya