Hello,
I need help with this.
I see a lot of applications are suppling array of objects with a key inside the object.
It is imposable to know the position of the object I'm looking for in the array.
When I want to use those objects further, I always use filter array actions based on those keys.
Sometimes I have to use lots of fitter array actions in order to get to all the objects I need.
For example
DocuSign supplies an array of objects each tab filed is a separate object in the array.
SmartSheet supplies an array of objects each cell in a row is a separate object.
I wander if there is a way to manipulate those arrays of objects into an object of objects and set those keys inside the object to the key to the object instead of having same just as a number in an array.
That way it will be supper easy to delegate through the output object and use in for input in further steps.
Current Output Array of Objects
{
"body":{
"recipientTabs":[
{
"name":"SignHere",
"tabType":"signhere",
"tabLabel":"Signature",
"documentId":"1",
"tabId":"1327bc1c3-4a14-4508-ab76-ae2fc85d04aa",
"recipientId":"1"
},
{
"name":"Test",
"tabType":"Text",
"tabLabel":"Test",
"documentId":"1",
"tabId":"42esf022-cc983-462a-8553-27e8383f3ac8",
"recipientId":"1"
}
]
}
}Desired Output Object of Objects
{
"body": {
"recipientTabs": {
"1327bc1c3-4a14-4508-ab76-ae2fc85d04aa": {
"name": "SignHere",
"tabType": "signhere",
"tabLabel": "Signature",
"documentId": "1",
"tabId": "1327bc1c3-4a14-4508-ab76-ae2fc85d04aa",
"recipientId": "1"
},
"42esf022-cc983-462a-8553-27e8383f3ac8": {
"name": "Test",
"tabType": "Text",
"tabLabel": "Test",
"documentId": "1",
"tabId": "42esf022-cc983-462a-8553-27e8383f3ac8",
"recipientId": "1"
}
}
}
} Thank you