 IonToJson
IonToJson
Convert an ION file into a JSONL file.
JSONL is the referrer for newline-delimited JSON.
type: "io.kestra.plugin.serdes.json.IonToJson"Examples
Download a CSV file and convert it to a JSON format.
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 *Requiredstring
Source file URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
charset string
UTF-8The name of a supported charset
Default value is UTF-8.
newLine booleanstring
trueIs 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!
shouldKeepAnnotations booleanstring
falseShould keep Ion annotations in the output JSON
If true, Ion annotations will be preserved in the output JSON. Default is false.
timeZoneId string
Etc/UTCTimezone to use when no timezone can be parsed on the source.
Outputs
uri string
uriURI of a temporary result file
