Data: Convert XML to JSON

Convert XML to JSON/dict format.

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

FieldRequiredWhat it does
XML dataYesThe data variable or XML string to process
VariableYesVariable name to store the result Default: json.

What it gives back

  • {json} – Converted JSON object

See all Data steps.

Errors

ErrorDescription
Invalid XMLThe 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

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.