IonToJson IonToJson

yaml
type: "io.kestra.plugin.serdes.json.IonToJson"

Read an ion serialized data file and write it to a new line delimited json file.

Examples

Download a CSV file and convert it to a JSON format.

yaml
id: ion_to_json
namespace: company.team

tasks:
  - id: http_download
    type: io.kestra.plugin.core.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/products.csv

  - id: convert
    type: io.kestra.plugin.serdes.csv.CsvToIon
    from: "{{ outputs.http_download.uri }}"

  - id: to_json
    type: io.kestra.plugin.serdes.json.IonToJson
    from: "{{ outputs.convert.uri }}"

Properties

from

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Source file URI

charset

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default: UTF-8

The name of a supported charset

Default value is UTF-8.

newLine

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: true

Is the file is a json new line (JSON-NL)

Is the file is a json with new line separator Warning, if not, the whole file will loaded in memory and can lead to out of memory!

timeZoneId

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default: Etc/UTC

Timezone to use when no timezone can be parsed on the source.

Outputs

uri

  • Type: string
  • Dynamic:
  • Required:
  • Format: uri

URI of a temporary result file

Definitions

Was this page helpful?