Split

Split an object into a list of objects, each with key and value pairs.

This is the inverse of the Collapse function card.

Input

Field Definition Type Required

object

JSON containing key and value pairs that you want to split into a list of objects.

List of Objects

TRUE

Click the empty input field to add more JSON list of objects that you want to split.

Output

Field Definition Type

list

The resulting list of objects.

List of Objects

Example

The Split function card takes the input object and splits it into two separate objects. For this particular example, you need to put the example input through a Parse card. Then drag that output to the object input of the Split function card.

Input

Copy
{
"foo": "bar",
"baz": "taz"
}

Output

Copy
[
{
"key": "foo",
"value": "bar"
},
{
"key": "baz",
"value": "taz"
}
]

Related topics

Functions in Workflows

Workflow elements