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

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"}