Skip to content

#splitOn

Returns an array of substrings by splitting a string on the provided delimiter.

#splitOn(value, delimiter)
Category StringsValid in Property value
Name Type Description
value path | string The string to split.
delimiter string Where to split.

array

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

Try it in the playground →

#joinWith