JDogo documentation
JDogo is JSON written as a table: keys once in a header, then rows of values. Same data, about half the tokens, decoded back exactly.
@id+,name,role,active 1001,Ada Lovelace,admin,true 1,Grace Hopper,editor,true 1,Alan Turing,viewer,false 1,Katherine Johnson,editor,true
Quick startEncode, decode and prompt in five minutes.
Format guideEvery symbol in the format, with examples.
AI prompts and ask()Cut prompt tokens and get exact answers.
API referencePython, TypeScript and Java, side by side.
Java guideRecords, Spring Boot, Jackson, Kotlin.
MCP serverExact answers for Claude Desktop and Cursor.
Use cases
RAG contextMore retrieved context in the same budget.
Agent tool resultsSmaller tool output, exact answers over MCP.
Questions about large tables150 of 150 with ask(), against 74 reading rows.
Service-to-service transferSmallest once gzipped, lossless, no schema.
Why teams switch
- Smaller prompts. 53% fewer tokens than JSON and 30% fewer than TOON across 60 production payloads.
- Nothing lost. 200 of 200 test cases decode to exactly the input: same keys, same order, same numbers.
- Exact answers.
ask()lets the model write a query and computes the answer in your process. 150 of 150 counting questions right, against 74 when the model read the rows. - Smallest on the wire. Gzipped, JDogo beats JSON, TOON and binary Avro on the benchmark set.
- Every language. Java, Python and TypeScript read each other's output, checked on every build. See Languages and compatibility.
- Built for agents. An MCP server gives Claude Desktop, Cursor and other agents exact answers and smaller context.
- No lock-in. Plain JSON is valid JDogo, so every reader accepts both.
All figures come from the benchmark suite in the repository. See Benchmarks for every case and how it was measured.
What's in the box
| Piece | What it does |
|---|---|
| SDKs | Python 3.9+, TypeScript and Node, Java 17+. No runtime dependencies in Python or TypeScript. |
| Codecs | Compact, readable and typed documents, streaming readers and writers, and the old 1.x format for existing data. |
| AI tools | Prompt builder, schema cards, ask() with a safe query evaluator, and grammars for llama.cpp. |
| Integrations | pandas, FastAPI, Flask, Express, Next.js, Vercel AI SDK, LangChain, Spring Boot, Spring AI, MCP and Jackson. |
| Java platform | Object mapper and Spring Boot starter, context sync (experimental) with signed deltas and Redis or SQL stores, a schema registry with compatibility checks, and column batches. |
| Tools | A CLI in all three languages, an HTTP API and the web playground. |
When to keep JSON
Under about 100 tokens there is little structure to remove, so savings are small. And a client you can't add a JDogo reader to still needs JSON. For everything else, pick a mode and go.