Skip to content

#joinWith

Returns a string that joins all elements of an array with the provided delimiter.

#joinWith(array, delimiter)
Category StringsValid in Property name, Property value
Name Type Description
array path | array The elements to join.
delimiter string Placed between elements.

string

source.json
{
"tags": [ "a", "b", "c" ]
}
transformer.json
{
"result": "#joinWith($.tags, ',')"
}
output.json
{
"result": "a,b,c"
}

Try it in the playground →

#splitOn · #append