Convertir TOON a JSON
toon-decodeDecodifica un texto TOON (especificación 4.4) a JSON; el modo estricto comprueba longitudes declaradas, anchos de fila, sangría y claves duplicadas. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: codificar un valor JSON como TOON (toon-encode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Decodes TOON text (Token-Oriented Object Notation, spec 4.4) into JSON: objects by indentation, inline, list and tabular arrays, keyed tables, quoted strings and comments; strict mode checks declared lengths, widths, indentation and duplicate keys. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: encoding a JSON value as TOON (toon-encode). [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toon | Yes | TOON document (string; required). | |
| indent | No | Spaces per indentation level (integer; optional; default 2; min 1; max 8). | |
| strict | No | Strict mode (spec default); false applies only the five recoveries of spec §14.4 (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | any JSON value |