JSON to TOON icon

JSON to TOON

Convert JSON to TOON format for token-efficient LLM prompts

Convert Object

AI-generated

Summary

Convert a JSON object into a TOON format string that is token-efficient for LLM prompts, optionally including a schema header and customizing delimiters for nested keys and values.

Inputs

  • JSON Input (required) — The JSON object to convert to TOON format.
  • Options — A collection of optional parameters: Include Schema Header (boolean, default true) to prepend a schema line; Delimiter (string, default '|') to separate TOON values; Nested Separator (string, default '.') to flatten nested keys.

Output shape

a single item with a JSON property containing the resulting TOON-formatted string, the original JSON, and an estimated token savings percentage

Returns one output item per execution input. The TOON string includes keys and values flattened with the specified nested separator. The schema header line is included unless disabled. Errors can be returned per item if 'Continue On Fail' is enabled.

Links

Discussion