The same data.
Half the tokens.
AK-DATA writes each field name once and the records after it by position. Programs keep JSON; the model reads AK-DATA. Converting back gives the original, byte for byte.
- npm@arkadia/data0.3.1
- Pythonarkadia-data0.3.1
- Rustarkadia-data0.3.1
- Homebrewak-data0.3.1
- GitHubreleasev0.3.1
{
"orders": [
{
"id": "ORD-1001",
"status": "paid",
"customer": {
"id": 7,
"name": "Hedy Johnson"
},
"items": [
{
"sku": "DK-05",
"qty": 1,
"price": 199
},
{
"sku": "KB-01",
"qty": 2,
"price": 89
}
]
},
{
"id": "ORD-1002",
"status": "pending",
"customer": {
"id": 9,
"name": "Ada Torvalds"
},
"items": [
{
"sku": "HD-10",
"qty": 1,
"price": 129.9
}
]
}
]
}<orders:<[id:string,status:string,customer:<id:number,name:string>,items:<[sku:string,qty:number,price:number]>]>>([("ORD-1001","paid",(7,"Hedy Johnson"),[("DK-05",1,199),("KB-01",2,89)]),("ORD-1002","pending",(9,"Ada Torvalds"),[("HD-10",1,129.9)])])The header in <…> names each field once, nested records too. This one line is what goes into the prompt.
Try your own JSON
Write AK-DATA or paste JSON. The editor suggests what fits at the cursor, shows the field you are filling and converts as you type.
<id:number>, then values in( ). Suggestions appear as you type — Ctrl+Space any time. The panel on the right shows what the cursor is on.What is this?
AK-DATA is JSON written for language models: a header declares the fields once, the values follow by position — about half the tokens, and it decodes back to exactly the same JSON. This studio lets you write it with help, check it, and convert it both ways.
What you can add — click to insert at the cursor
Keys
The complete definition with every rule: ak-data info in a terminal. Your text is kept in this browser only.
Drafts are not saved by default. Limit: 200,000 characters.
How it reads
A header in angle brackets, then values in order. Hover or tap a block for the rules and an example.
Hover a tile (tap on a phone) for the full definition. Every example is decoded when the page is built. The whole definition in a terminal: ak-data info.
Fewer tokens
All 8 datasets shaped like agent data — tables, nested orders, logs, search results. Every encoding is decoded back and checked against the original.
- JSON37,647
- JSON min24,154−35.8%
- YAML29,275−22.2%
- TOON19,332−48.6%
- AK-Data compact16,607−55.9%
o200k_base tokenizer, measured 2026-10-31.
Tokens per dataset
| Dataset | JSON | JSON min | YAML | TOON | AK-Data compact |
|---|---|---|---|---|---|
| analytics90 days of metrics (time series) | 4,858 | 3,141 | 3,858 | 2,071 | 1,991 |
| configirregular nested configuration | 279 | 152 | 193 | 182 | 168 |
| employees100 flat records (tabular) | 7,535 | 4,831 | 5,751 | 3,228 | 3,155 |
| logs150 log events (tabular) | 9,215 | 5,911 | 7,091 | 4,122 | 3,980 |
| orders40 orders with nested customer and item lists | 7,242 | 4,167 | 5,230 | 3,930 | 2,619 |
| rag-chunks24 retrieval chunks with long text | 2,351 | 1,913 | 2,264 | 1,656 | 1,689 |
| repositories50 repositories with topic lists | 3,568 | 2,083 | 2,605 | 2,507 | 1,358 |
| tool-resultsweb search tool output with 30 results | 2,599 | 1,956 | 2,283 | 1,636 | 1,647 |
The smallest in each row is green. Run it on your files: make benchmark DIR=./my-json.
Do models understand it?
Fewer tokens only help if the answers stay right. Each model got the same 474 questions — lookups, nested paths, counts, sums — with the data in each format. Answers are computed from the data and scored exactly.
- gpt-5.599.6%AK-DATA compact, JSON 99.8% (−0.2 pts)
- gpt-5.4-mini72.2%AK-DATA compact, JSON 75.3% (−3.2 pts)
| Format | Prompt tokens | gpt-5.5 | gpt-5.4-mini |
|---|---|---|---|
| JSON (indent 2) | 134,978 | 99.8%99–100% | 75.3%71–79% |
| YAML | 105,541 | 99.4%98–100% | 75.7%72–79% |
| TOON | 76,103 | 99.8%99–100% | 74.5%70–78% |
| AK-Data compact | 65,680 | 99.6%98–100% | 72.2%68–76% |
| AK-Data compact + sizes | 66,562 | 99.6%98–100% | 74.7%71–78% |
| AK-Data + sizes | 81,164 | 100.0%99–100% | 74.5%70–78% |
Small numbers: 95% interval — formats whose intervals overlap are not shown to differ. Click an accuracy for the questions that format got wrong.
By question type
| Question | JSON | TOON | AK compact | AK + sizes |
|---|---|---|---|---|
| aggregate 13 | 100% | 100% | 100% | 100% |
| contains 8 | 100% | 100% | 100% | 100% |
| count 47 | 98% | 98% | 96% | 98% |
| count2 19 | 100% | 100% | 100% | 100% |
| extreme 53 | 100% | 100% | 100% | 100% |
| fields 31 | 100% | 100% | 100% | 100% |
| filter 23 | 100% | 100% | 100% | 100% |
| inner-sum 8 | 100% | 100% | 100% | 100% |
| length 37 | 100% | 100% | 100% | 100% |
| lookup 101 | 100% | 100% | 100% | 100% |
| nested 30 | 100% | 100% | 100% | 100% |
| null 5 | 100% | 100% | 100% | 80% |
| optional 10 | 100% | 100% | 100% | 100% |
| position 64 | 100% | 100% | 100% | 100% |
| value 25 | 100% | 100% | 100% | 100% |
| Question | JSON | TOON | AK compact | AK + sizes |
|---|---|---|---|---|
| aggregate 13 | 15% | 0% | 8% | 8% |
| contains 8 | 63% | 63% | 50% | 50% |
| count 47 | 43% | 47% | 34% | 38% |
| count2 19 | 47% | 21% | 26% | 37% |
| extreme 53 | 68% | 60% | 53% | 57% |
| fields 31 | 100% | 100% | 100% | 100% |
| filter 23 | 35% | 26% | 26% | 26% |
| inner-sum 8 | 63% | 75% | 75% | 63% |
| length 37 | 92% | 100% | 97% | 100% |
| lookup 101 | 99% | 99% | 98% | 98% |
| nested 30 | 100% | 97% | 100% | 100% |
| null 5 | 20% | 0% | 0% | 60% |
| optional 10 | 20% | 40% | 20% | 30% |
| position 64 | 77% | 81% | 83% | 86% |
| value 25 | 100% | 100% | 100% | 100% |
Red: under 50%. Where every format is red (counts, sums), the model is the limit, not the format — let the agent compute those with code.
With metadata: comments the decoder ignores, the model uses
27 questions, 15 of which need a fact written only in the metadata — what a status code means, which unit an amount is in.
| Variant | Tokens | Needs metadata | Other |
|---|---|---|---|
| JSON | 2,632 | 27% | 100% |
| JSON + notes | 2,876 | 100% | 100% |
| AK-DATA, no metadata | 1,970 | 27% | 100% |
| AK-DATA + /* comments */ | 2,233 | 100% | 100% |
| AK-DATA + $attributes #tags | 2,182 | 93% | 100% |
| AK-DATA + comments + attributes | 2,442 | 100% | 100% |
| Variant | Tokens | Needs metadata | Other |
|---|---|---|---|
| JSON | 2,632 | 13% | 100% |
| JSON + notes | 2,876 | 93% | 100% |
| AK-DATA, no metadata | 1,970 | 20% | 100% |
| AK-DATA + /* comments */ | 2,233 | 87% | 100% |
| AK-DATA + $attributes #tags | 2,182 | 73% | 100% |
| AK-DATA + comments + attributes | 2,442 | 80% | 92% |
Copy a prompt, ask any chat
66 real-looking datasets with a question. Pick a format, copy, paste into ChatGPT, Claude or Gemini, and compare the answers.
Invoices: overdue and unpaid
Amounts in grosze and status codes 0/1/2 — explained only in the metadata.
The data below is in AK-DATA (compact, single-line form). AK-DATA (Arkadia Data Format): <a:type,b:type> is a header; (v1,v2) is a record whose values follow the header order. <[a:type,...]>[(...),(...)] is a list of records sharing that header; headers nest, e.g. items:<[sku:string,qty:number]>. {key:value} is a record with names; <type> or <any> before a value overrides the header type. Strings are quoted; numbers, true, false, null as in JSON; /*...*/, $attr, #tag are metadata, not data. A record with fewer values than its header has only the first fields; //$size=N// before list items is their count. <data> // $currency="PLN" $as_of="2026-10-20" #ledger // /* Sales invoices. Amounts are in grosze (1/100 PLN). */ <invoices:<[no:string,client:string,gross:number $unit="grosze" /* gross amount in grosze (12350 = 123.50 PLN) */,due:string $format="YYYY-MM-DD" /* payment due date */,st:number $enum="0=unpaid,1=paid,2=cancelled" /* status: 0 unpaid, 1 paid, 2 cancelled */]>>([("FV/001/2026","Acme",468800,"2026-10-20",1),("FV/002/2026","Globex",33550,"2026-10-02",1),("FV/003/2026","Initech",715150,"2026-10-26",1),("FV/004/2026","Umbrella",865700,"2026-10-25",1),("FV/005/2026","Hooli",788850,"2026-10-07",2),("FV/006/2026","Stark",581350,"2026-10-27",1),("FV/007/2026","Wayne",295650,"2026-10-23",0),("FV/008/2026","Tyrell",458450,"2026-10-02",1),("FV/009/2026","Soylent",187800,"2026-10-26",1),("FV/010/2026","Wonka",579600,"2026-10-07",0),("FV/011/2026","Cyberdyne",493250,"2026-10-26",2),("FV/012/2026","Vandelay",483350,"2026-10-16",1),("FV/013/2026","Acme",77100,"2026-10-24",1),("FV/014/2026","Globex",358950,"2026-10-18",0)]) </data> Question: Which invoices are unpaid and overdue on 2026-10-20? Give the number and the gross amount in PLN. Answer in AK-DATA only (no prose, no code fences), with exactly this header and one record per item: <overdue:<[no:string,pln:number]>>
Expected answer (computed from the data and its metadata)
Compare the model's answer with this.
<overdue:<[no:string,pln:number]>>([("FV/010/2026",5796.0),("FV/014/2026",3589.5)])Same prompts from the command line: ak-data prompt --example 11 --format toon --attributes --comments (ak-data prompt --list shows all 66). Token counts (o200k_base) include the format definition (AK-DATA 148, TOON 79 tokens); paste it once per chat and later prompts are smaller. JSON and TOON have no place for metadata, so the same facts go into notes above the data.
Track every change
Data given to a model does not stand still: prices, statuses and records change. ak-data compares two documents by what they mean and keeps the history of changes inside the file, like git log for your data.
Diff by path, not by line
A change is products[id=2].price, not “line 48”. Reordering or reformatting the file is not a change.
The history travels with the data
Author, date and title of every change are stored in the document itself. No database, no side file.
The data stays the same
The history is metadata. A program that reads the file gets exactly the values it got before.
- 1
Start with some data
A price list saved as AK-DATA, and next year's prices as plain JSON. Any two documents work: JSON or AK-DATA, files or stdin.
echo '{"products":[{"id":1,"name":"Basic","price":49},{"id":2,"name":"Pro","price":99}]}' | ak-data -c -o data.akd echo '{"products":[{"id":1,"name":"Basic","price":59},{"id":2,"name":"Pro","price":119}]}' > update.json - 2
See what would change
The diff matches records by their id and names every change by its path, so you read what changed instead of hunting for it between brackets.
ak-data diff data.akd update.json --infodiff data.akd → update.json +0 added -0 removed ~2 changed ~ products[id=1].price 49 → 59 ~ products[id=2].price 99 → 119 - 3
Merge it and say why
The update goes into the data as one recorded change with a title, the way a commit has a message.
ak-data merge data.akd update.json -m "Prices 2027" -o data.akdmerge data.akd + update.json (merged) +0 added -0 removed ~2 changed 6bc99b350e 2026-11-13 Ada Lovelace Prices 2027 +0 -0 ~2 - 4
Read the history
Who changed what, when and why, read from the file alone. It works like git log, for one document.
ak-data history data.akdchange 6bc99b350e (latest) Author: Ada Lovelace <ada@example.com> Date: 2026-11-13 20:32:58 UTC Prices 2027 ~ products[id=1].price 49 → 59 ~ products[id=2].price 99 → 119 +0 added -0 removed ~2 changed - 5
Use the data as before
The history is stored as the $changes attribute. Converting back to JSON gives the new values and nothing else.
ak-data data.akd -t json-min{"products":[{"id":1,"name":"Basic","price":59},{"id":2,"name":"Pro","price":119}]}
Patches and libraries
ak-data diff old.json new.json -o change.akd saves the difference as a patch, and ak-data apply old.json change.akd applies it later (-R undoes it). The same diff, merge and apply are functions in the Python, npm and Rust libraries.
Use it
Python, TypeScript and Rust write the same text. What changed in 0.3.1.
Version 0.3.1 is on every registry.
brew install arkadia-solutions/tap/ak-data # the ak-data command
cargo install arkadia-data # the same command, built with Rust
pip install arkadia-data # Python library
npm install @arkadia/data # TypeScript / JavaScript library
cargo add arkadia-data # Rust libraryOr download ak-data for macOS, Linux x86_64, Linux arm64 or Windows x86_64 (checksums). Homebrew formula: arkadia-solutions/tap.
Like JSON.stringify and JSON.parse.
import { dumps, loads } from '@arkadia/data';
const data = { users: [{ id: 1, name: 'Ada' }, { id: 2, name: 'Alan' }] };
const text = dumps(data); // <users:<[id:number,name:string]>>([(1,"Ada"),(2,"Alan")])
dumps(data, { indent: 2 }); // readable form
loads(text); // the original objectLike json.dumps and json.loads.
import arkadia.data as akd
data = {"users": [{"id": 1, "name": "Ada"}, {"id": 2, "name": "Alan"}]}
text = akd.dumps(data) # <users:<[id:number,name:string]>>([(1,"Ada"),(2,"Alan")])
akd.dumps(data, indent=2) # readable form
akd.loads(text) == data # True
akd.loads_any(model_reply) # accepts AK-DATA or JSONserde_json values in, serde_json values out.
use arkadia_data as akd;
use serde_json::json;
let data = json!({"users": [{"id": 1, "name": "Ada"}]});
let text = akd::encode(&data); // compact, for prompts
let pretty = akd::encode_pretty(&data); // readable form
let back = akd::decode(&text)?; // == dataReads a file, text or stdin. Every command has --help.
ak-data data.json # readable, coloured AK-DATA
ak-data data.json -c # one line, for prompts
ak-data data.akd -t json # back to JSON (also: json-min, toon)
echo '{"a":1}' | ak-data -c # <a:number>(1)
ak-data prompt --list # ready-made prompts to paste into a chatKeep JSON for programs; give the model AK-DATA.
// MCP tool result: JSON for the client, AK-DATA for the model
return {
structuredContent: rows,
content: [{ type: 'text', text: dumps(rows) }],
};Teach your agent
Two skills for Claude Code, Codex, Cursor and other tools that read SKILL.md.
- ak-data-installInstalls the libraries and the ak-data command, and converts tool results and files.DownloadRead
- ak-data-formatReads and writes the format: headers, records, metadata, common mistakes.DownloadRead
Unzip into ~/.claude/skills/ (or your tool's skills folder). Checksums.