data_table
Parses a data table.
Example
1
2
3
4
5
6
7
8
9
10
11
12
{{ "a;b;c,1;2;3,4;5;6" | data_table }} => [
{
"a" => "1",
"b" => "2",
"c" => "3"
},
{
"a" => "4",
"b" => "5",
"c" => "6"
}
]
Input
Type | Parameter | Description | Required |
---|---|---|---|
string | input | The input to parse. Comes before the | sign. | Required |
string | fieldDelimiter | The delimiter for fields | |
string | lineDelimiter | The delimiter for lines | |
string | enclosure | The enclosure character | |
string | escape | The escape character |
Output
Type | Description |
---|---|
array | The parsed data |