> 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/develop/reference/functions/json-parse.md).

# json-parse()

```
OXN-node-set json-parse(string json)
```

Parses a JSON text into a structured JSON document ([OXN](/flat/develop/reference/templating/oxn.md)) and returns its root node.

## Parameters

* `json`: A valid JSON in serialized form (string).

If the parameter cannot be decoded, the function returns an empty node-set.

## Example

```
json-parse('{"active":true}')/active = true()
json-parse($data/description)
json-parse(json-stringify($body))
```

## See also

* [`json-stringify()`](/flat/develop/reference/functions/json-stringify.md)
* [`assert`](/flat/develop/reference/actions/assert.md)
