Expand description
TOON encoder core (sonic-rs backend).
Input: JSON bytes (from orjson.dumps on Python side). Output: TOON string, matching TOON spec v4.1.
Delimiter is monomorphized via const generics (DELIM: u8) so the
byte-match inner loops fold away when emitting default-comma output.
Structs§
- Config
- Encoder configuration. The spec’s only encoder options are
delimiterandindentSize(§13); the rest are etoon extensions or resource guards.