XML to JSON policy
The XML to JSON policy transforms XML content to JSON content.
Timing
| On Request Content | On Response Content |
|---|---|
| X | X |
Configuration
| Property | Required | Description | Type | Default |
|---|---|---|---|---|
scope | yes | The execution scope (REQUEST or RESPONSE). | string | RESPONSE |
Example
"xml-json": {
"scope": "RESPONSE"
}
Errors
HTTP status code
| Code | Message |
|---|---|
500 | The transformation cannot be executed properly. |
Nested Objects
To limit processing time and memory consumption for nested objects, the policy sets a default max depth of 1000. You cannot change this default value.