Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux_erlang has not been released. Its API may change during development. This site's structure and URLs may change too.

Erlang API

module libtmux-erlang latest

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

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/2 to 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.

Esc

Type to search.

Reference previewOpen reference