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. |
Object |
TRUE |
Click the empty input field to add more JSON 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
{
"name": "Jessie Doe",
"empno": "C45X13"
}
Output
[
{
"key": "name",
"value": "Jessie Doe"
},
{
"key": "empno",
"value": "C45X13"
}
]