Frends.CSV.ConvertToJSON / 1.3.0
Summary
Reads CSV text and emits JSON, using the header row for property names and optional column definitions to decide types rather than leaving everything a string.
Typical use — getting a delimited file into a shape the JSON and mapping Tasks can work with, in one step instead of parse-then-convert
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Csv | String |
– | 1;Foo;Bar |
Input csv string |
| Delimiter | String |
";" |
; |
Delimiter. |
| ColumnSpecifications | ColumnSpecification[] |
– | [ { foo, String } ] |
You can map columns to specific types. The order of the columns are used for mapping, that means that the ColumnSpecification elements need to be created in the same order as the CSV fields. |