Actions2
Convert Array
AI-generatedSummary
Convert a JSON array into TOON tabular format, optionally including a schema header and customizing delimiters.
Inputs
- JSON Input (required) — The JSON array to convert to TOON format
- Options — Optional settings to customize the TOON output including delimiter character, inclusion of the schema header, and nested object separator (not applicable for arrays).
Output shape
a single record containing the TOON-formatted string, the original JSON input, and an estimate of token savings
The output includes a 'toon' string representing the TOON table, 'originalJson' echoing the input, and 'tokenSavingsEstimate' as a textual estimate of token reduction percentage. If the input array is empty, the TOON output will be an empty string. Each record in the array is converted into delimited values based on the keys of the first object in the array. The schema header is included by default but can be omitted via options.
Examples
Example 1: Convert a JSON array of objects to TOON format with default options
Provide a JSON array on 'JSON Input' and select operation 'Convert Array'. The output includes a schema header and uses '|' as the delimiter.