from_csv()
Usage
from_csv(source[, delimiter[, quoteChar[, recordSeparator]]])
Description
Parses the given source string and returns an object representation of the string.
It is assumed that the CSV has a header. The header values are used as property names.
The default values for the optional parameters are:
- delimiter = ;
- quoteChar = "
- recordSeparator = \n
Example
${from_csv('COL1;COL2;COL3\none;two;three')}
${first(from_csv('COL1;COL2;COL3\none;two;three')).COL2}
results in
[{COL3=three, COL2=two, COL1=one}]
two