Convert JSON to XML
The
json-to-xml
policy converts a request or response body from JSON to XML.XML
<json-to-xml apply="always | content-type-json" consider-accept-header="true | false" parse-date="true | false"/>
XML
<policies>
<inbound>
<base />
</inbound>
<outbound>
<base />
<json-to-xml apply="always" consider-accept-header="false" parse-date="false"/>
</outbound>
</policies>
Name | Description | Required |
json-to-xml | Root element. | Yes |
Name | Description | Required | Default |
apply | The attribute must be set to one of the following values:
| Yes | N/A |
consider-accept-header | The attribute must be set to one of the following values:
| No | true |
parse-date | When set to false date values are simply copied during transformation | No | true |
This policy can be used in the inbound, outbound, and on-error policy scopes.
Questions?
We're always happy to help with any issues you might have!
Send us an email to [email protected] or request the demo with our sales team!
Last modified 3yr ago