$join
Concatenates an array (list) of items into a string.
Signature
Arguments
Name
Description
Type
Required
StringString ArrayNumber ArrayObject Array
String
String
String
Example #1 - Array of strings
{{$join categories ", " " & "}}{
"categories": ["Disguise", "Explosive", "Transportation"]
}Example #2- Collection (array of objects)
{{$join items "name" ", " " & "}}{
"items": [
{ "name": "Glue V1", "price": 9.99 },
{ "name": "Artificial Rock", "price": 26.99 },
{ "name": "Bat-Man's Outfit", "price": 159.99 }
]
}Example #3 - Path to array
{{$join "company.employees" "name" ", " " & "}}{
"company": {
"name": "Acme Co.",
"employees": [
{
"name": "Bernadine Burton",
"role": "Decoy"
},
{
"name": "Good Battle",
"role": "Field Agent"
},
{
"name": "Dennis Miles",
"role": "Field Agent"
}
]
}
}Last updated
Was this helpful?