#joinWith
Returns a string that joins all elements of an array with the provided delimiter.
#joinWith(array, delimiter)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
array |
path | array |
The elements to join. |
delimiter |
string |
Placed between elements. |
Returns
Section titled “Returns”string
Examples
Section titled “Examples”Comma-separated list
Section titled “Comma-separated list”{ "tags": [ "a", "b", "c" ]}{ "result": "#joinWith($.tags, ',')"}{ "result": "a,b,c"}