Basic Examples
Simple Configuration
User Profile
Tabular Data Examples
Database Query Results
TOON excels at representing tabular data:Sales Data
Product Catalog
Notice how the comma in “Universal Adapter, 5V” is automatically quoted to avoid delimiter confusion.
Nested Structures
API Response
Organization Hierarchy
Complex Real-World Examples
Test Suite Configuration
Machine Learning Dataset
Delimiter Variants
Tab-Separated Values
Use--tab flag for tab-separated data:
Pipe-Separated Values
Use--pipe flag for pipe-separated data:
Edge Cases
Special Characters in Data
Empty and Null Values
Mixed Primitives
Optional Features
Length Markers
Use--length-marker for explicit array size indicators:
Key Folding
Use--key-folding to flatten nested single-key objects:
Both represent the same nested structure in JSON.
Performance Comparison
Space savings on a real-world 1000-record dataset:| Format | Size | Savings |
|---|---|---|
| JSON | 145 KB | baseline |
| JSON (minified) | 89 KB | 39% |
| TOON (tabular) | 52 KB | 64% |
| TOON (compressed) | 12 KB | 92% |
Next Steps
CLI Usage
Learn how to convert files with the CLI tool
CLI Options
Explore all available conversion options
Python API
Use TOON in your Python applications
TOON Overview
Return to the format overview