---
title: parse_json
description: "Parse JSON text into a typed template value."
---

# parse_json

Parse JSON text into a typed template value.

## Syntax

```knap
{{ value | parse_json }}
```

## Usage

- Invalid JSON is returned unchanged with a nonfatal warning.
- Values that are already typed are returned unchanged.
- Collection-aware filters recognize serialized arrays and objects automatically, so ordinary collection chains do not require `parse_json`.

## Example

```json title="Data"
{
  "value": "[\"one\",\"two\"]"
}
```

```knap title="Template"
{{ value | parse_json | join:", " }}
```

```md title="Output"
one, two
```

## Related filters

- [object](/filters/object)
