2. Enterprise Integration Patterns

beautifier

Beautifies request and response bodies. Supported are the Formats: JSON, JSON5, XML, TEXT

Can be used in:

serviceProxy, api, global, chainDef, for, stompProxy, if, registration, wsStompReassembler, internal, interceptor, chain, bean, transport and soapProxy

Sample

<api port="2000">
    <template contentType="application/xml">
        <foo><bar>baz</bar></foo>
    </template>
    <beautifier/>
    <return statusCode="200"/>
</api>