> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/xml-to-json.md).

# xml-to-json()

```
string xml-to-json(node-set node)
```

`xml-to-json` translates the given `node` into its JSON representation. The structure of the `node` must be in [Object XML Notation](/flat/reference/templating/oxn.md). `xml-to-json` expects exactly one single node as parameter. In cases of errors, an empty `string` is returned.
