Actions2
Encode TOON
AI-generatedSummary
Encode a JSON object into TOON format
Inputs
- jsonObject (required) — The JSON object to encode into TOON format
- options — Encoding options including indentation and delimiter
Output shape
An array of objects, each containing a json field with the encoded TOON string and a pairedItem field indicating the source item index
If
continueOnFailis enabled, failures result in an object with anerrormessage rather than throwing
Examples
Example 1: Encode a JSON payload using default settings
Set jsonObject to the JSON to encode; leave options empty to use default indent of 2 and comma delimiter
