CSV
Version compatibility
CSV
was introduced in version 4.28.0 of the JourneyApps Container.
Generating a CSV String
Format
source
One of:
Array
Matrix (array of arrays)
options
(Optional)
Object with the following properties:
heading
: Array of column headings. Usenull
to generate a CSV file without a header row.delimiter
: Character to separate columns with.
Defaults to ,
Returns: the generated CSV as a string.
Examples
In this case, csv_file
is
Suppose we have an asset
data model object with (amongst others) name
and cost
as fields, and we want to generate CSV for all assets and their names and costs:
Parsing a CSV String
Format
source
String
options
(Optional)
Object with the following properties:
delimiter
: Character to separate columns with. If no delimiter
is specified, the library detects and uses the appropriate one
Returns: the parsed CSV as an array of arrays.
Example
Assume csv_file
's content is:
Last updated