tmux_json
Decode bounded JSON using OTP's json parser and binary object keys.
Source and package
- Qualified name
-
tmux_json - Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_json.erl
- tmux_json
-
Description#
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/2to validate decoded filter data.
Members1#
- decode/1 function Return a decoded value or a structured error without creating payload atoms.
Guides#
Pages that discuss tmux_json.