Convert between JSON and TOON (Token-Oriented Object Notation) to cut LLM token usage by 30-60%, with compression ratio statistics.
Author: EFT
Repo: dify-plugin-toon
Version: 1.0.0
Type: tool
This Dify plugin converts data between JSON and TOON (Token-Oriented
Object Notation), a compact, human-readable serialization format designed for
LLM prompts. By removing redundant quotes, braces and repeated keys, TOON
typically reduces token usage by 30-60% compared to JSON, which lowers
cost and leaves more context window for actual content.
Conversion is powered by toon-format,
the official Python implementation of the TOON specification. It passes
every official conformance fixture and guarantees lossless round-trips
() for every JSON-compatible value, including
nested structures and tabular arrays with nested field groups.
No network connection or external service is required: conversion runs
locally in the plugin runtime, with no endpoint to configure and no
credentials to provide.
Convert a JSON string into TOON format.
Outputs:
Example input:
Example text output:
Example json output:
Uniform arrays of objects are encoded in tabular form: field names are
declared once in the header and each element becomes one compact row.
Convert a TOON string into formatted JSON (, 2-space indent).
The delimiter is auto-detected from tabular headers, as the TOON
specification requires. Round-tripping JSON -> TOON -> JSON preserves the
data.
Outputs:
Both tools validate their input and return friendly English error messages
instead of raising raw exceptions:
All conversion happens in-memory inside the plugin runtime. No data is
collected, logged, stored or transmitted anywhere. See
PRIVACY.md for details.
Package with the Dify Plugin CLI:
MIT
No outbound calls found
Last checked 10/11/2026 03:39 PM · version 1.0.0