Split

Split an object into a list of objects, each with key and value properties. This is the inverse of the Collapse function card.

Input Fields

  • object (List of Objects): JSON object of key/value pairs that will be split into a list of objects

Note

Click the empty input field to add a second or subsequent JSON list of objects that you also want to split.

Output Fields

  • list: Resulting list of objects

Example

Consider the following input:

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

The Split function card takes the object and splits it into two objects:

[

    {"key":  "foo",  "value": "bar"},

    {"key":  "baz",  "value": "taz"},

}

Related topics

Functions in Workflows

Elements of Workflows