TOON to JSON
Decode TOON into JSON and review the reconstructed data in your browser.
Valid TOONStrict checks passed: lengths, row widths and indentation match.
451 chars, 8 lines
Conversion and token counting run in your browser. Nothing is uploaded.
Token count: TOON vs JSON
Exact counts with o200k_base
- TOON (your input)144 tokens
- Minified JSON209 tokens
- Pretty JSON (2 spaces)360 tokens
TOON uses 60% fewer tokens than pretty JSON and 31% fewer than minified JSON. Keep this data in TOON for prompts.
Shape: 1 table (6 rows), 0 list arrays, 0 inline arrays. Tables are where TOON saves tokens; list arrays cost about as much as YAML.
Working with TOON to JSON
Convert a TOON sample back into a familiar JSON structure before inspecting or passing it to another application. Resolve syntax feedback in the source first, then review arrays and nested values in the output. This page starts in the decoding direction.
How to use TOON to JSON
- Choose the conversion direction and enter the source data.
- Review validation feedback and the converted output.
- Copy the result and verify it with the system that will consume it.
TOON to JSON example
Decode a small TOON record with name and role fields, then check those properties in the generated JSON object.
What to expect from the result
Decoding follows the installed TOON library's supported syntax. A successful conversion does not validate the data against your application's schema.
TOON to JSON questions
How do I use TOON to JSON?
Choose the conversion direction and enter the source data. Review validation feedback and the converted output. Copy the result and verify it with the system that will consume it.
What should I check in the result?
Decoding follows the installed TOON library's supported syntax. A successful conversion does not validate the data against your application's schema.