You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am stuck in generating an array with fields from two different arrays which share a common key. When the common key's value is the same in both array elements, it has to be merged. Below is the sample Input and Output JSON. Please help me in writing a JOLT spec for this scenario. Your help is much appreciated!
Hi, I am stuck in generating an array with fields from two different arrays which share a common key. When the common key's value is the same in both array elements, it has to be merged. Below is the sample Input and Output JSON. Please help me in writing a JOLT spec for this scenario. Your help is much appreciated!
Input JSON
{
"parentArray": [
{
"array1": [
{
"field1": "1008",
"field2": "b1111"
},
{
"field1": "2345",
"field2": "b2222"
}
],
"array2": [
{
"field1": "1008"
},
{
"field1": "3210"
}
]
}
]
}
Output JSON
{
"parentResultArray": [{
"resultArray": [{
"field1": "1008",
"jsonObject": {
"field2": "b1111"
}
}]
}]
}
The text was updated successfully, but these errors were encountered: