How to print the response of the REST API call

groovy.json.JsonOutput class would help:

See