Forum Discussion

varnikha's avatar
varnikha
Occasional Contributor
5 years ago
Solved

Unable to get Rest Response in JSON format using Groovy

Hi All,   I have created successfully a test suite with Rest API and I have created groovy script to save request,response in the Local. Problem what I am facing is I am not getting Rest Respon...
  • varnikha's avatar
    varnikha
    5 years ago

    Hi JHunt,

     

    I have implemented by adding a jar file(groovy-json-2.1.1.jar) and to add syntax def JsonResponse = JsonOutput.prettyPrint(response)using groovy.

      I achieved the result as expected