Help Centre › Functions & Formulas
Convert XML to JSON/dict format.
Add it to a process
In the process designer, open the Add step tab. Find Convert XML to JSON under Data › Convert, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| XML data | Yes | The data variable or XML string to process |
| Variable | Yes | Variable name to store the result Default: json. |
What it gives back
{json}– Converted JSON object
See all Data steps.
Errors
| Error | Description |
|---|---|
| Invalid XML | The data is not valid XML |
Tips
- XML attributes become @attr keys in the JSON output
- Use json-query after conversion to navigate the resulting JSON