TOON (Token-Oriented Object Notation) is a modern data format optimized for AI and Large Language Models. It reduces token count by 30-60% compared to JSON, making it ideal for AI applications.
Key Features:
- Indentation-based structure
- Column headers with square brackets
- Comma-separated data rows
- Minimal redundancy
JSON:
{
"users": [
{"id": 1, "name": "Sreeni", "role": "admin"},
{"id": 2, "name": "Krishna", "role": "admin"}
],
"metadata": {
"total": 2,
"updated": "2024-01-15"
}
}
TOON:
users[2]{id,name,role}:
1,Sreeni,admin
2,Krishna,admin
metadata{total,updated}:
2,2024-01-15