Skip to main content

Module toon

Module toon 

Source
Expand description

TOON (Token-Oriented Object Notation) output support.

Provides structure analysis, strategy selection, and TOON encoding for token-efficient output. Uses the toon-format crate for encoding.

Structs§

JsonShape
Structural characteristics of a JSON value.
ToonError
Error type for TOON encoding failures.

Enums§

ToonStrategy
Strategy selected by select_strategy for encoding output.
TopLevel
The top-level type of a JSON value.

Functions§

analyze
Analyze the structure of a JSON value.
encode
Encode a JSON value as TOON format.
select_strategy
Select the optimal encoding strategy based on structural analysis.