toon-format/toon-java
☕ Community-driven Java implementation of TOON
This project helps Java developers convert their Java objects or existing JSON data into the TOON format, a compact, human-readable serialization format designed to significantly reduce token count for Large Language Model (LLM) contexts. It takes standard Java data structures or JSON strings as input and produces TOON-formatted text, ideal for anyone working with LLMs who needs to optimize prompt length.
140 stars.
Use this if you are a Java developer building applications that interact with Large Language Models and need to efficiently serialize data to reduce token usage and cost.
Not ideal if you are not a Java developer or if your primary goal is general-purpose data serialization not specifically aimed at LLM context optimization.
Stars
140
Forks
24
Language
Java
License
MIT
Category
Last pushed
Mar 05, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/toon-format/toon-java"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – Compact, human-readable, schema-aware JSON for LLM...
dweve-ai/hedl
Token-efficient data serialization for LLM/AI. 50% fewer tokens than JSON, 93% better...
tonl-dev/tonl
TONL (Token-Optimized Notation Language)
ISON-format/ison
🔥 🔥 Alternative to JSON 🔥 🔥
com-vitthalmirji/toon4s
toon4s: Token-Oriented Object Notation for JVM