免费 · 开发
JSON 转 TOON 转换器.
在 JSON 与 TOON(Token-Oriented Object Notation)之间转换,减少发送给大模型的数据量,并显示大小对比和往返校验。
Loading the calculator…
使用方法: JSON 转 TOON 转换器
输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。
限制与支持格式
输入内容在您的设备上处理。
英语技术说明
Token counts are estimates (about 4 characters per token). Everything is calculated in your browser; nothing you type is uploaded.
Objects use indentation, arrays carry their length [N], and arrays of uniform flat objects become tables with a {field} header. Strings are quoted only when needed. Tested on thousands of random documents.
Three users with id, name, role and active become one header users[3]{id,name,role,active}: and three short rows — about 40 % smaller than compact JSON.