
Serialization ToonToJson
CertifiedConvert a TOON file into JSON
Serialization ToonToJson
Certified
Convert a TOON file into JSON
Parses TOON (Token-Oriented Object Notation) and converts it to JSON. Supports all TOON 3.0 structures produced by JsonToToon: tabular arrays, inline primitive arrays, nested objects, and canonical primitives.
yaml
type: io.kestra.plugin.serdes.json.ToonToJsonExamples
Convert a TOON file to JSON.
yaml
id: toon_to_json
namespace: company.team
tasks:
- id: create_toon
type: io.kestra.plugin.core.storage.Write
extension: toon
content: |
products[2]{id,name,price}:
1,Apple,1.2
2,Banana,0.9
metadata:
category: fruits
country: France
- id: to_json
type: io.kestra.plugin.serdes.json.ToonToJson
from: "{{ outputs.create_toon.uri }}"
Properties
from *Requiredstring
Source TOON file URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
charset string
Default
UTF-8The name of a supported charset
Default value is UTF-8.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
size integer
Default
0The number of records converted
uri string
Format
uriURI of the resulting JSON file
Metrics
records counter
Number of records parsed