Hello,
I have a question regarding response body transformations, particularly about JSON to JSON transformations.
Correct me if I am wrong, but it seems there is currently only one way to transform the response body, using the Body Transform
plugin.
I have some heavy transformations to do. With go templating it can be time consuming and not really readable with all the boilerplate it induces because of null values.
Most of the fields look like :
"code": {{if .info.codeSupport}}{{ .info.codeSupport | jsonMarshal }}{{else}}null{{end}}
After looking at the documentation, rich plugin doesn’t seem to be able to change the request response, and JS middleware should be able to in the next release.
So is there an other way to transform a response body ?
Thanks,
Best regards