Expand description
A minimal JSON emitter for amont list --json.
Twenty lines for a flat, known schema — not a general serialiser. See
manifest.rs’s module doc for why this project prefers that trade on the
commit path: this crate must stay dependency-free, and a hand-rolled
escaper for the one shape CheckListing needs costs less than a serde
tree that runs on every commit in 96 repositories.
Functions§
- array
- Comma-join already-built objects into
[...]. - bool_
field - escape
- Escape
sper the JSON spec:",\, and control characters. - int_
field - A number, unquoted — a limit a reader will compare against is worth emitting as one rather than as a string they have to parse back.
- object
- Comma-join already-built
"key":valuefragments into{...}. - opt_
string_ field nullwhenvalueisNone— used forstage_filterandcommand.- string_
array_ field - string_
field