JsonToYaml JsonToYaml
JsonToYaml Certified

yaml
type: "io.kestra.plugin.serdes.yaml.JsonToYaml"
yaml
id: json_to_yaml
namespace: company.team

tasks:
  - id: write_json
    type: io.kestra.plugin.core.storage.Write
    extension: json
    content: |
      {
        "name": "Apple",
        "price": 1.2
      }

  - id: to_yaml
    type: io.kestra.plugin.serdes.yaml.JsonToYaml
    from: "{{ outputs.write_json.uri }}"

yaml
id: jsonl_to_yaml
namespace: company.team

tasks:
  - id: write_jsonl
    type: io.kestra.plugin.core.storage.Write
    extension: jsonl
    content: |
      {"name":"Apple","price":1.2}
      {"name":"Banana","price":0.9}

  - id: to_yaml
    type: io.kestra.plugin.serdes.yaml.JsonToYaml
    jsonl: true
    from: "{{ outputs.write_jsonl.uri }}"
Properties
DefaultUTF-8
Defaultfalse
Formaturi