# tmux_json

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_json.erl#L1
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_json/

Decode bounded JSON using OTP's `m:json` parser and binary object keys.

Documents are limited to 256 KiB before parsing and 32 nested containers
during parsing. Duplicate keys are rejected before overwriting values, even
when different escapes spell the same key. Trailing input is rejected. Numbers
stay in the shared exact integer range. Integral decimal tokens are converted
exactly; fractional tokens that round to integers are rejected. Field
validation decides whether a remaining float is permitted. Syntax and resource
errors have a root path; duplicate-key errors retain their complete document
path. Use `tmux_filter:from_wire/2` to validate decoded filter data.

## Members

### Common operations

- [`decode/1`](/en/erlang/latest/reference/tmux_json-decode-1/) (function): Return a decoded value or a structured error without creating payload atoms.

## Guides

Pages that discuss `tmux_json`.

- [Native API documentation](/en/erlang/latest/guides/api-documentation/)
