json_to_toon 1.0.0
json_to_toon: ^1.0.0 copied to clipboard
A Flutter/Dart package for converting between JSON and TOON (Token-Oriented Object Notation) formats. TOON is a compact, human-readable encoding optimized for LLM prompts.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - 2025-11-21 #
Added #
- Initial release of json_to_toon package
- ToonEncoder for converting JSON to TOON format
- ToonDecoder for converting TOON to JSON format
- ToonConverter for unified conversion API
- Support for all JSON data types (objects, arrays, primitives)
- Tabular format for uniform object arrays
- Proper string escaping and quoting
- Comprehensive test suite
- Example Flutter app with interactive UI
- Full documentation and README
Features #
- Lossless JSON ↔ TOON conversion
- 30-60% token reduction compared to JSON
- YAML-like indentation for nested objects
- CSV-style tabular format for uniform arrays
- Minimal punctuation for token efficiency