#splitOn
Returns an array of substrings by splitting a string on the provided delimiter.
#splitOn(value, delimiter)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to split. |
delimiter |
string |
Where to split. |
Returns
Section titled “Returns”array
Examples
Section titled “Examples”Split a list
Section titled “Split a list”{ "csv": "a,b,c"}{ "result": "#splitOn($.csv, ',')"}{ "result": [ "a", "b", "c" ]}