Forum Discussion
premanand
8 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
- 9 years ago
- 2 years ago
- 8 years ago
- 5 years ago
Recent Discussions
- 15 years ago