Serialization YamlToIon

Serialization YamlToIon

Certified

Convert a YAML file into ION

Each YAML document in the file — separated by --- — becomes a separate ION record.

yaml
type: io.kestra.plugin.serdes.yaml.YamlToIon

Convert YAML to ION

yaml
id: yaml_to_ion
namespace: company.team

tasks:
  - id: write_yaml
    type: io.kestra.plugin.core.storage.Write
    extension: yaml
    content: |
      ---
      id: 1
      name: Apple
      price: 1.2
      ---
      id: 2
      name: Banana
      price: 0.9

  - id: convert
    type: io.kestra.plugin.serdes.yaml.YamlToIon
    from: "{{ outputs.write_yaml.uri }}"
Properties

Source file URI

DefaultUTF-8

The name of a supported charset

Reference (ref) of the pluginDefaults to apply to this task.

Default0

The number of records converted

Formaturi

URI of the output file

Number of YAML documents converted