Skip to main content

Module toon

Module toon 

Source
Expand description

TOON encoder core (sonic-rs backend).

Input: JSON bytes (from orjson.dumps on Python side). Output: TOON string, matching TOON spec v1.5.

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 matching TOON spec v1.5 options.

Functions§

encode
encode_with