Groovy Script
Explanation
This script cleans unnecessary quote marks from JSON data in the response body:- Fixing escaped quotes: Replaces
\\"characters with" - Cleaning start quotes: Replaces
"[characters with[ - Cleaning end quotes: Replaces
]"characters with]
This script should be run on the response line (Response Policy) because it uses the
responseBodyTextToClient variable.
