Seperate JSON into List
This action takes a JSON object and splits each key-value pair into its own object within a list. The function returns a success flag and the resulting list.
Example:
{
"json": {
"order": "123",
"email": "[email protected]"
}
}
Will have the output:
{
"success": true,
"list": [
{
"order": "123"
},
{
"email": "[email protected]"
}
]
}
Inputs
The function expects an event object containing a json field, which holds the JSON object to be processed.
Name | Type | Description |
---|---|---|
json | String | The JSON object to be split. |
Outputs
The function returns an object with two fields: success and list.
Name | Type | Description |
---|---|---|
success | Boolean | Success |
list | List | A list of objects, each containing a single key-value pair from the input JSON. |
Updated 4 months ago