How it Works

The TOON Conversion Process

The JSON to TOON converter uses a simple yet powerful algorithm to reduce the number of tokens in your data. Here's a step-by-step breakdown of the process:

  1. Parsing: The converter first parses your JSON data to understand its structure.
  2. Removing Redundancy: It then removes redundant characters like curly braces, square brackets, and commas.
  3. Indentation: The converter uses indentation to represent the structure of your data, similar to YAML.
  4. Header Consolidation: For arrays of objects, the converter consolidates the keys into a single header row, which significantly reduces the number of tokens.