4. Interceptors/Features

json2Xml

Version

If enabled converts body content from json to xml.

Explanation:

Can be used for both request and response. Resulting xml will be utf-8. It uses org.json XML.toString() to do the conversion

Syntax

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

Can be used in