Help Centre › Functions & Formulas
Convert JSON data to XML format.
Add it to a process
In the process designer, open the Add step tab. Find Convert JSON to XML under Data › Convert, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| JSON data | Yes | The data variable or JSON string to process |
| Variable | Yes | Variable name to store the result Default: xml. |
| Root tag | No | The XML root element name Default: root. |
What it gives back
{xml}– XML string
See all Data steps.
Errors
| Error | Description |
|---|---|
| Invalid JSON | The data is not valid JSON |
Tips
- Nested JSON objects produce nested XML elements
- JSON arrays are converted to repeated elements