Vitalii Kuzmenko
02/05/2025, 8:25 PM{
"priority": 10,
"request": {
"method": "POST",
"urlPattern": "(.*)/test"
},
"response": {
"transformers": [
"response-template"
],
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": "{\"value\": \"{{jsonPath request.body '$.value'}}\"}"
}
}
When I'm performing the request with body like this:
{
"value": "some\\data"
}
In response I'm receiving value "some\data" (without one backslash).
Is it possible to keep both backslashes is the response?Werner Blanck
02/05/2025, 9:00 PM"body": "{\"value\": \"{{jsonPath request.body '$.value'}}\"}"
with:
"jsonBody": {"value": "{{jsonPath request.body '$.value'}}"}
at least it will improve redability (no need to escape the double quotes)Vitalii Kuzmenko
02/06/2025, 8:34 AM