# tmux_filter:decode_json/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_filter.erl#L135
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_filter-decode_json-1/

```
decode_json(Binary)
-spec decode_json(binary()) ->
                     {ok, json:decode_value()} |
                     {error, map()}.
```

Decode bounded external JSON with duplicate-key, trailing-input and depth checks. Returns tagged errors with input paths. Parsing does not execute tmux or choose application modules.

## Parameters

- `Binary` (`binary()`)

## Guides

Pages that discuss `decode_json/1`.

- [Selections and queries](/en/erlang/latest/concepts/queries/)
