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