Token-optimized JSON compression format for LLMs
Definitions section where repeated objects and array schemas are declared once and referenced later.
Data section containing the actual compressed content using the definitions from above.
Extract common keys to a header
Deduplicate repeated values
Reuse repeated structures
Collapse nested single properties
{
"order": {
"id": "ORD-2024-001",
"customer": {
"name": "Alice Johnson",
"email": "alice@example.com"
},
"billing": {
"street": "123 Main St",
"city": "San Francisco",
"zip": "94102"
},
"shipping": {
"street": "123 Main St",
"city": "San Francisco",
"zip": "94102"
},
"items": [
{"id": 1, "product": "Laptop", "price": 999},
{"id": 2, "product": "Mouse", "price": 29}
]
}
}
$def:
&obj0:
street:123 Main St
city:San Francisco
zip:94102
$data:
order.id:ORD-2024-001
order.customer.name:Alice Johnson #0
order.customer.email:alice@example.com
order.billing:&obj0
order.shipping:&obj0
order.items:[2]@id,product,price
1,Laptop,999
2,Mouse,29
No setup required. ASON automatically detects patterns and optimizes compression without any manual configuration.
Lossless round-trip guaranteed. Your data structure and values remain exactly as they were after decompression.
Up to 23% token reduction on uniform data with 4.94% average savings across diverse datasets. Consistently beats alternatives.
Full TypeScript definitions. Works seamlessly in Node.js and browsers. Available on NPM and all major CDNs.
Unlike binary formats, ASON output remains readable and debuggable while achieving significant compression ratios.
Combines multiple techniques: uniform arrays, object references, value dictionaries, and path flattening automatically.
Enable ASON in Claude Desktop, Cline, Continue, and other MCP-compatible AI assistants.
Compress/decompress JSON with keyboard shortcuts, context menus, and GitHub Copilot integration.
Rust-based ASON extension with slash commands and AI assistant integration for Zed editor.