4. Interceptors/Features

json2Xml

Converts body payload from JSON to XML. The JSON must be an object other JSON documents e.g. arrays are not supported.

Explanation:

Resulting XML will be in UTF-8 encoding.

Can be used in:

serviceProxy, api, for, choose, stompProxy, if, registration, wsStompReassembler, internal, interceptor, bean, transport and soapProxy

Syntax

<api port="2000">
  <request>
    <json2Xml/>
  </request>
  <target url="http://localhost:3000"/>
</api>


Attributes

NameRequiredDefaultDescriptionExample
root false - - -