Open cristinamudura opened 1 year ago
input
{
"objectWithArrays": [
{
"MyFirstObject": [
{
"refKey": "1",
"test": "mytest"
},
{
"refKey": "2",
"test": "mytest"
}
],
"SecondObjectToMergeWith": [
{
"refKey": "1",
"testing": "a"
},
{
"refKey": "2",
"testing": "b"
},
{
"refKey": "3",
"testing": "c"
}
]
},
{
"MyFirstObject": [
{
"refKey": "1",
"test": "mytest"
},
{
"refKey": "2",
"test": "mytest"
}
],
"SecondObjectToMergeWith": [
{
"refKey": "1",
"testing": "d"
},
{
"refKey": "2",
"testing": "e"
},
{
"refKey": "3",
"testing": "f"
}
]
}
]
}
should turn into
{
"objectWithArrays": [
{
"MyFirstObject": [
{
"refKey": "1",
"test": "mytest",
"testing": "a"
},
{
"refKey": "2",
"test": "mytest",
"testing": "b"
}
],
"SecondObjectToMergeWith": [
{
"refKey": "1",
"testing": "a"
},
{
"refKey": "2",
"testing": "b"
},
{
"refKey": "3",
"testing": "c"
}
]
},
{
"MyFirstObject": [
{
"refKey": "1",
"test": "mytest",
"testing": "d"
},
{
"refKey": "2",
"test": "mytest",
"testing": "e"
}
],
"SecondObjectToMergeWith": [
{
"refKey": "1",
"testing": "d"
},
{
"refKey": "2",
"testing": "e"
},
{
"refKey": "3",
"testing": "f"
}
]
}
]
}
This is currently not supported. It is a challenging structure with an array in an array. The execution requires it to be handled 0ne by one, while the current implementation works to match all results based on the key provided.
I tried several creative ways to make it work, but to no avail. In order to make this work we have to add some methods to run it for each object separately.
Input
Script
Expected Result: