TOON to JSON icon

TOON to JSON

Convert TOON format back to JSON

TOON to JSON

AI-generated

Summary

Parse TOON-formatted string data into JSON, outputting either a single object, an array of objects, or auto-detecting the format.

Inputs

  • TOON Input (required) — The TOON data string to convert to JSON.
  • Output Format — Determines whether the output is parsed as a single object, an array of objects, or auto-detected based on input.
  • Options — Configuration options including delimiter character, nested key separator, and whether to parse numeric and boolean values.

Output shape

a single JSON object, a JSON array of objects, or either depending on auto-detection

If 'Auto-detect' is selected for Output Format, the node returns a JSON object when there is exactly one parsed record, or an array of objects otherwise. Numeric and boolean strings in the TOON input are converted to their types by default unless disabled via options. Nested object keys are supported via a nested separator string.

Examples

Example 1: Converting TOON data with schema header to JSON objects

Provide TOON-formatted data starting with '@schema' defining the keys, set output format to 'Auto-detect' or 'Array' to get JSON array of objects.

Example 2: Parsing TOON data without schema header

Provide TOON data without '@schema', node auto-generates field names (field0, field1, etc.).

Links

Discussion