-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I’m trying to perform a transform on elected in an array. I need to update object in an array that has a matching key. If the key matches I need to change the key as well add an Id to the object.
Example payload
{
"items": [
{
"id": "234234235",
"keyTypeA": "One"
},
{
"keyTypeA": "One"
},
{
"keyTypeA": "Two"
},
{
"keyTypeB": "Red"
}
]
}
Transformed into
{
"items": [
{
"id": "987234345",
"keyTypeA": "Three"
},
{
"id": "987234345",
"keyTypeA": "Three"
},
{
"keyTypeA": "Two"
},
{
"keyTypeB": "Red"
}
]
}
Any advice would be appreciated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels