Hi, I have following map in a variable -
[{
"a": {
"1": [1,2]
},
"b": {
"2": [1,2]
},
"c": {
"3": [1,2]
}
},
{
"a": {
"4": [1,2]
},
"b": {
"5: [1,2]
}
}]
I want to convert it to
{
"a": {
"1": [1,2]
"4": [1,2]
},
"b": {
"2": [1,2],
"5": [1,2]
},
"c": {
"3": [1,2]
}
}
Can somebody help with how I would write nested for loops and flattening and merges here? I have tried multiple combinations and nothing seems to give me what I need.
You help here is much appreciated!