Collapse

Combine a list of objects with key and value properties into a single JSON object. This is the inverse of the Split function card.

Input Fields

  • list (List of Objects): list of objects to be combined

Note

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

Output Fields

  • list: resulting JSON object of key/value pairs

Example

The following are two objects that will be combined:

{

"key": "foo",

"value": "bar"

}

{

"key": "baz",

"value": "taz"

}

The card collapses the preceding objects into the following JSON object:

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

Related topics

Functions in Workflows

Elements of Workflows