Escaped Characters in Response Transform

I am using the response transform on a JSON object that contains escaped double quotes in one of the values. The resulting transformed object has removed the escaping, leaving invalid JSON. Example:

{ "myField": "Here is \"the\" value" }

{ "newField": "{{.myField}}" }

{ "newField": "Here is "the" value" }

Is there a way to preserve the character escaping?

Thank you

I’m afraid not - the inbound JSON is parsed into a template object, this will remove the quoting I believe.

This may be a big, can you reportnit in our GitHub fracker?

For reference: Response Transform middleware strips escaping characters · Issue #1145 · TykTechnologies/tyk · GitHub

Slated for 2.4

Thanks all for the support!