Skip to main content
Version: 4.17.3

JSON to XML component

The JSON to XML component allows you to convert JSON formatted input into XML output directly.

Configuration

The JSON to XML component has the following configuration options:

Element Name

Specify XML node name for array elements. The default value is element.

See the example below with default settings:

[
1,
2,
3
]

Array Name

Specify the name of the top-level XML element if the JSON starts with an array. The default value is array.

See the example below with default settings:

[
1,
2,
3
]
root name specified

If a Root Name is specified, the root node will be renamed accordingly. For example <array> becomes <root>.

Root Name

Specify the name of the top-level element. The default value is empty, but it will fallback to o if the JSON does not start with an array.

See the two examples below:

{
"x": "value1",
"y": "value2"
}

If the JSON starts with an array and Root Name is empty, the root element will use the value specified in Array Name.

[
1,
2,
3
]

Namespace lenient

Specify whether to tolerate incomplete namespace prefixes.

Options

  • Yes
  • No (default)

Type Hints

Specify whether to add type hints to the XML output.

Options

  • Yes
  • No (default)

Using JSON to XML

Simple example

See the example below with the following settings (unmentioned settings use default values):

{
"order_numbers": [
"201406",
"201407",
"201408"
]
}

Type hint example

See the example below with the following settings (unmentioned settings use default values):

{
"Drivers": [
{
"Name": "Max Verstappen",
"Age": 19
},
{
"Name": "Nico Hulkenberg",
"Age": 30
}
],
"Teams": [
{
"Name": "Redbull Racing",
"Principal": "Christian Horner"
},
{
"Name": "Renault",
"Principal": "Carlos Ghosn, Jérôme Stoll, Cyril Abiteboul"
}
]
}
Last update on Feb 24, 2025