r/json • u/Majestic-Rip278 • 1d ago
I built a JSON-compatible format for LLM prompts: schema once, values by position, comments for meaning. Feedback welcome
I've been working on Arkadia Data (AK-Data), a text format for sending JSON-shaped data to LLMs. Disclosure: I'm the author; it's MIT-licensed.
The idea: declare field names once, write records by position, and allow comments that the decoder ignores but the model reads.

JSON:
{"orders": [
{"id": 101, "st": 2, "amount": 1250},
{"id": 102, "st": 4, "amount": 899},
{"id": 999, "st": 4, "amount": 100000}
]}
Arkadia Data:
<orders:<[
id:number,
st:number /* 1=new, 2=paid, 3=shipped, 4=refunded */,
amount:number /* EUR cents */
]>>
([
(101,2,1250),
(102,4,899),
/* test record */
(999,4,100000)
])JSON โ AK-Data โ JSON returned the original for every document I tested, including TOON's spec fixtures and thousands of generated documents (mixed lists, keys that differ from the header, nested lists, empty keys).
What I measured:
- Size: 31% fewer tokens than minified JSON on 8 agent-style datasets (o200k_base). It doesn't always win: minified JSON is smaller for a single irregular object.
- Accuracy: 474 questions, 32 datasets, GPT-5.4-mini, 2 runs. 75.9% for AK-Data with list sizes vs 74.7% for indented JSON, not statistically significant. Minified JSON wasn't in that test.
- Meaning: a plain comment like /* status: 0 unpaid, 1 paid, 2 cancelled */ raised answers to metadata questions from 20% to 87% (JSON with the same facts as a _meta object: 93%, at more tokens).
Limits: one model, synthetic data. If the model has to *write* data and nothing validates it, JSON is still the safer choice.
How to install:
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 libraryArticle:
Full article and write-up with every model answer:
Page: https://arkadia.solutions/articles/ak-data
Medium: https://medium.com/@arek.klemenko/arkadia-data-smaller-ai-context-with-meaning-included-7a9e73223a48
I'd especially like to hear: which JSON shapes you'd expect to break it, and whether the comment syntax feels natural.






