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.

JSON184 tokens
{
  "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
        }
      ]
    }
  ]
}
AK-DATA93 tokens · 49% fewer
<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.

Install 0.3.1Try your own JSON
vs JSON
−55.9% tokens
vs TOON
−14.1% tokens
Round-trip
Lossless

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.

tipStart with a header <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.
…Ln 1, Col 1
    At the cursor
    You can add hereclick to insert
    Structure
    round-trip

    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
    DatasetJSONJSON minYAMLTOONAK-Data compact
    analytics90 days of metrics (time series)4,8583,1413,8582,0711,991
    configirregular nested configuration279152193182168
    employees100 flat records (tabular)7,5354,8315,7513,2283,155
    logs150 log events (tabular)9,2155,9117,0914,1223,980
    orders40 orders with nested customer and item lists7,2424,1675,2303,9302,619
    rag-chunks24 retrieval chunks with long text2,3511,9132,2641,6561,689
    repositories50 repositories with topic lists3,5682,0832,6052,5071,358
    tool-resultsweb search tool output with 30 results2,5991,9562,2831,6361,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.5
      99.6%
      AK-DATA compact, JSON 99.8% (−0.2 pts)
    • gpt-5.4-mini
      72.2%
      AK-DATA compact, JSON 75.3% (−3.2 pts)
    FormatPrompt tokensgpt-5.5gpt-5.4-mini
    JSON (indent 2)134,97899.8%99–100%75.3%71–79%
    YAML105,54199.4%98–100%75.7%72–79%
    TOON76,10399.8%99–100%74.5%70–78%
    AK-Data compact65,68099.6%98–100%72.2%68–76%
    AK-Data compact + sizes66,56299.6%98–100%74.7%71–78%
    AK-Data + sizes81,164100.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
    gpt-5.5
    QuestionJSONTOONAK compactAK + sizes
    aggregate 13100%100%100%100%
    contains 8100%100%100%100%
    count 4798%98%96%98%
    count2 19100%100%100%100%
    extreme 53100%100%100%100%
    fields 31100%100%100%100%
    filter 23100%100%100%100%
    inner-sum 8100%100%100%100%
    length 37100%100%100%100%
    lookup 101100%100%100%100%
    nested 30100%100%100%100%
    null 5100%100%100%80%
    optional 10100%100%100%100%
    position 64100%100%100%100%
    value 25100%100%100%100%
    gpt-5.4-mini
    QuestionJSONTOONAK compactAK + sizes
    aggregate 1315%0%8%8%
    contains 863%63%50%50%
    count 4743%47%34%38%
    count2 1947%21%26%37%
    extreme 5368%60%53%57%
    fields 31100%100%100%100%
    filter 2335%26%26%26%
    inner-sum 863%75%75%63%
    length 3792%100%97%100%
    lookup 10199%99%98%98%
    nested 30100%97%100%100%
    null 520%0%0%60%
    optional 1020%40%20%30%
    position 6477%81%83%86%
    value 25100%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.

    gpt-5.5
    VariantTokensNeeds metadataOther
    JSON2,63227%100%
    JSON + notes2,876100%100%
    AK-DATA, no metadata1,97027%100%
    AK-DATA + /* comments */2,233100%100%
    AK-DATA + $attributes #tags2,18293%100%
    AK-DATA + comments + attributes2,442100%100%
    gpt-5.4-mini
    VariantTokensNeeds metadataOther
    JSON2,63213%100%
    JSON + notes2,87693%100%
    AK-DATA, no metadata1,97020%100%
    AK-DATA + /* comments */2,23387%100%
    AK-DATA + $attributes #tags2,18273%100%
    AK-DATA + comments + attributes2,44280%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.

    Format
    Metadata
    11

    Invoices: overdue and unpaid

    contains metadataanswer needs the metadata

    Amounts in grosze and status codes 0/1/2 — explained only in the metadata.

    prompt
    681
    vs JSON
    -28.0%
    metadata
    +103
    answer
    40 vs JSON 64
    prompt · AK-DATA COMPACT · attributes + comments
    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]>>
    
    What only the metadata says
    /* comments */
      $attributes #tags
        Expected answer (computed from the data and its metadata)

        Compare the model's answer with this.

        AK-DATA · 40 tokens
        <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. 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. 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 --info
          diff data.akd → update.json   +0 added  -0 removed  ~2 changed
          
            ~ products[id=1].price  49 → 59
            ~ products[id=2].price  99 → 119
        3. 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.akd
          merge data.akd + update.json (merged)   +0 added  -0 removed  ~2 changed
            6bc99b350e 2026-11-13 Ada Lovelace  Prices 2027 +0 -0 ~2
        4. 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.akd
          change 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. 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 library

        Or download ak-data for macOS, Linux x86_64, Linux arm64 or Windows x86_64 (checksums). Homebrew formula: arkadia-solutions/tap.

        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.