Skip to main content

Module json

Module json 

Source
Expand description

JSON output helpers: the newline-delimited framing used by list and status --all (spec §7 — one object per line, never a wrapping array).

Functions§

to_line
Serializes value to a single-line JSON string with no trailing newline. Callers write each line through crate::cx::Stream::line, producing the newline-delimited stream.