Collapse
Collapse a list of objects into a single object by merging each object in the order they appear in the list. If objects have overlapping keys subsequent values will take precedence over preceding values.
Input
Field | Definition | Type | Required |
---|---|---|---|
list | List of objects to be collapsed. | Object | TRUE |
Output
Field | Definition | Type |
---|---|---|
output | Collapsed set of objects. | Object |
Example
Input list |
Output object |
---|---|
[{"item":1},{"item":2}]
|
{"item":2}
|
[{"valueA":"a"},{"valueB":"b"}]
|
{"valueA":"a","valueB":"b"}
|