Structs§
- Parse
Error - A parse error with source location and optional source line context.
- Tjson
Options - Options controlling how TJSON is rendered. Use
TjsonOptions::defaultfor sensible defaults, orTjsonOptions::canonicalfor a compact, diff-friendly format. All fields are set via builder methods.
Enums§
- Bare
Style - Controls whether bare (unquoted) strings and keys are preferred.
- Error
- The error type for all TJSON operations.
- Fold
Style - Controls how long strings are folded across lines using
/continuation markers. - Indent
Glyph Marker Style - Controls how the
/<opening glyph of an indent-offset block is placed. - Indent
Glyph Style - Controls when
/<//>indent-offset glyphs are emitted to push content to visual indent 0. - Multiline
Style - Controls which multiline string format is preferred when rendering strings with newlines.
- String
Array Style - Controls how arrays of short strings are packed onto a single line.
- Table
Unindent Style - Controls how tables are horizontally repositioned using
/< />indent-offset glyphs. - Tjson
Value - A parsed TJSON value. Mirrors the JSON type system with the same six variants.
Constants§
- DEFAULT_
WRAP_ WIDTH - The default wrap width used by
TjsonOptions::default. - MIN_
WRAP_ WIDTH - The minimum accepted wrap width. Values below this are clamped by
TjsonOptions::wrap_widthand rejected byTjsonOptions::wrap_width_checked.
Functions§
- from_
str - Parse a TJSON string and deserialize it into
Tusing serde. - to_
string - Serialize
valueto a TJSON string using default options. - to_
string_ with - Serialize
valueto a TJSON string using the given options.