Forum Discussion
NBorovykh
6 years agoModerator
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:
Related Content
Recent Discussions
- 5 days ago
- 9 days ago