Hi, I am receiving data from a webhook that contains a sub-array with fixed key names, as such:
"fields": [
{
"id": 123,
"name": "phone number",
"type": "Phone",
"answer": "123123123",
},
{
"id": 124,
"name": "email address",
"type": "TextInput",
"answer": "123123123@gmail.com",
},
]
I will need the data flattened as such:
parsedData = {
"phone number": "123123123",
"email address": "123123123@gmail.com",
}
What I need is a new dict for which each line has key equal to an entry’s ‘name' value, and value equal to the same entry’s answer value.
I have tried the map function which outputs an array with all selected values, which isn’t exactly what I want, and I have tried an iterator+set multiple variables, which will use as many credits as there are variables, and I can’t seem to be able to use the output bundles in following modules.
How should I approach this?
Thank you.