Content-Type. JSON, JSON5, XML and plain text are reindented; any other content type is left unchanged. Runs in both the request and the response flow and is best-effort: an empty or unparseable body passes through untouched and the exchange never fails. See the tutorials under tutorials/json and tutorials/xml.Example Configuration
api:
port: 2000
flow:
- static:
contentType: application/json
src: '{"name":"Membrane","tags":["api","gateway"]}'
- beautifier: {}
- return: {}
api:
port: 2000
flow:
- static:
contentType: application/json
src: '{"name":"Membrane","tags":["api","gateway"]}'
- beautifier: {}
- return: {}
Syntax
beautifier: {}
beautifier: {}