Skip to main content Crate tjson Copy item path Source ParseError A parse error with source location and optional source line context. TjsonOptions Options controlling how TJSON is rendered. Use TjsonOptions::default for sensible
defaults, or TjsonOptions::canonical for a compact, diff-friendly format.
All fields are set via builder methods. BareStyle Controls whether bare (unquoted) strings and keys are preferred. Error The error type for all TJSON operations. FoldStyle Controls how long strings are folded across lines using / continuation markers. IndentGlyphMarkerStyle Controls how the /< opening glyph of an indent-offset block is placed. IndentGlyphStyle Controls when /< / /> indent-offset glyphs are emitted to push content to visual indent 0. MultilineStyle Controls which multiline string format is preferred when rendering strings with newlines. StringArrayStyle Controls how arrays of short strings are packed onto a single line. TableUnindentStyle Controls how tables are horizontally repositioned using /< /> indent-offset glyphs. TjsonValue A parsed TJSON value. Mirrors the JSON type system with the same six variants. MIN_WRAP_WIDTH The minimum accepted wrap width. Values below this are clamped by TjsonOptions::wrap_width
and rejected by TjsonOptions::wrap_width_checked . from_str Parse a TJSON string and deserialize it into T using serde. to_string Serialize value to a TJSON string using default options. to_string_with Serialize value to a TJSON string using the given options. Result Convenience Result type with Error as the default error type.