# JSON to XML Converter

**Use case:** 

Turn JSON objects into formatted XML with a custom root element and item node names for feeds, integrations, and legacy systems.

## Input

```json
{
  "inputs": [
    {
      "inputData": "{\"products\":[{\"sku\":\"A-100\",\"name\":\"Notebook\",\"price\":4.99}]}",
      "mode": "jsonToXml"
    }
  ],
  "mode": "jsonToXml",
  "parseAttributes": true,
  "rootElement": "inventory",
  "prettyPrint": true,
  "arrayNodeName": "product"
}
```

## Output

```json
{
  "inputIndex": {
    "label": "#",
    "format": "number"
  },
  "mode": {
    "label": "Mode",
    "format": "text"
  },
  "outputFormat": {
    "label": "Format",
    "format": "text"
  },
  "inputPreview": {
    "label": "Input Preview",
    "format": "text"
  },
  "output": {
    "label": "Output",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [XML ↔ JSON Converter](https://apify.com/automation-lab/xml-json-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/xml-json-converter) to learn more, explore other use cases, and run it yourself.