TOON format support for Java via json-io (40-50% token savings) #5319
jdereg
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on issue #4869 requesting TOON support - wanted to share that there's now a Java library with full TOON read/write support that works with Spring AI today.
What is TOON?
TOON (Token-Oriented Object Notation) is a format designed for LLM efficiency, achieving ~40-50% token reduction vs JSON.
JSON (48 chars, ~15 tokens):
Using with Spring AI
Features
Links: https://github.com/jdereg/json-io | https://toonformat.dev/ | Related: #4869
Disclosure: I maintain json-io. Happy to answer questions or discuss integration patterns!
Beta Was this translation helpful? Give feedback.
All reactions