TOON Parser icon

TOON Parser

Parse and Encode TOON format data

Encode TOON

AI-generated

Summary

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 continueOnFail is enabled, failures result in an object with an error message 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

Links

Discussion