Skip to main content

Module format

Module format 

Source
Expand description

Whitespace-only formatting for strict JSON token streams.

Structs§

JsonPrettyError
Error from validating, planning, or writing formatted JSON tokens.
JsonPrettyOptions
Controls indentation and the optional final newline in pretty output.
JsonPrettyOptionsBuilder
Builder for whitespace formatting choices.

Enums§

JsonPrettyErrorKind
Stable category for a token formatting failure.

Functions§

format_json_tokens
Validates and pretty-prints JSON while preserving source token spelling.
write_json_tokens
Validates and plans the full document before writing to the supplied output.