Forum Discussion

siva90144's avatar
siva90144
New Contributor
7 years ago

How to format json response body in soap UI

am getting json body from rest response with escaped cahrs as shown below. How to format josn response in soapUI using groovy script?

 

        {
          "employee": "{\"name\":\"John\", \"age\":30, \"city\":\"New York\"}"
     }

       

Expected Output:            

      {

                     "employee":

                           {

                              "name": "John",

                              "age": 30,

                              "city": "New York"

                          }

                }