Forum Discussion
TanyaYatskovska
6 years agoSmartBear Alumni (Retired)
@Community, any suggestions?
Hi richie,
I've modified your code in the following way:
import groovy.json.* def response = context.expand( '${REST Request#Response}' ) def object = new JsonSlurper().parseText(response) assert object.header.success == true assert object.data[0].Links.method == "GET" assert object.data[0].VersionNumber == 1
It works fine for me:
@Community, any suggestions?