From TOON
Converts Token-Oriented Object Notation (TOON) to JSON. TOON is a compact, human-readable
serialization of JSON designed for LLM prompts. From TOON lives in the Data format category of the fx menu. See
the TOON specification for format details.
Parameters
Section titled “Parameters”Studio shows these descriptions on each parameter. Options map to the library’s non-deprecated indentSize and
strict decode settings (deprecated indent is not exposed).
Returned value
Section titled “Returned value”Limitations
Section titled “Limitations”- Empty Input raises an evaluation error.
- Invalid TOON (or length mismatches when Strict is enabled) raises an evaluation error — fix the Input or disable Strict only when you intentionally accept non-conforming documents.
- Decoding follows the official
@toon-format/toondecoder.
Example
Section titled “Example”Decode TOON to JSON
Convert TOON text (for example the output of To TOON) back into a JSON string for downstream steps.
-
Set Input to:
Input ok: true -
Leave Strict enabled.
-
Confirm Output value is:
Output {"ok":true}