Documentation

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.

NameTypeDescription
jsonStringThe JSON object to be split.

Outputs

The function returns an object with two fields: success and list.

NameTypeDescription
successBooleanSuccess
listListA list of objects, each containing a single key-value pair from the input JSON.