IronFlowDocs

csv_parse

Parse a CSV string from context into JSON arrays.

Parameters

source_keystringrequired
Context key holding the CSV text
output_keystringrequired
Context key where parsed rows are stored
has_headerbooldefault true
Parse the first row as header names
delimiterstringdefault ,
CSV delimiter character (one char, or \\t for tab)
quote_charstringdefault "
Quote character for parsed fields
trimbooldefault false
Trim whitespace from each field
skip_empty_linesbooldefault true
Skip completely empty lines
infer_typesbooldefault false
Convert numeric and boolean fields into JSON primitives

Context Output

  • {output_key} — an array of parsed rows
    • with has_header: true: [{"col": value}, ...]
    • with has_header: false: [[col1, col2, ...], ...]

Example

flow:step("parse", nodes.csv_parse({
    source_key = "raw_csv",
    output_key = "rows",
    has_header = true,
    delimiter = ",",
    infer_types = true
}))

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close