Forum Discussion
richie
3 years agoCommunity Hero
Hey oph_2022,
So your json response is contained within an array is that correct?
If you're talking about a json response then you could us an event handler (TestRunListener.afterStep) to remove the array container, but this would actually alter the response to malformed json (if the example payload youve included in your post).
The groovy would look something like the following:
content = content.replaceAll("\\[", "")
content = content.replaceAll("]", "")
Cheers,
Rich