Forum Discussion

Bharadwaj's avatar
Bharadwaj
Contributor
7 years ago

Parsing a simple SOAPUI JSON Response in Groovy

Hi Guys, I am new to Soap UI and Groovy. I am looking to develop a generic function in Groovy which takes a SOAPUI rest response which is a JSON ,access all the objects in it and print it on to the ...
  • PaulMS's avatar
    7 years ago

    The structure of your json data with nesting is different to the flat example in slack overflow.

     

    If you don't expect that structure to change then try

     

     

    map.each {it.each 
        { key, value ->
        log.info "$key : $value"
        }
    }

     

     

  • Bharadwaj's avatar
    Bharadwaj
    7 years ago

    Thanks PaulMS