I have the following
Input JSON :
{
"a": [
[
"a1"
],
[
"a2"
]
],
"b": [
[
"b1",
"b2"
],
[
"b3",
"b4"
]
],
"c": [
[
"c1"
],
[
"c2"
]
]
}
I want to use jolt transform to output it like this:
Output JSON:
[
{
"a": "a1",
"b": "b1",
"c": "c1"
},
{
"a": "a1",
"b": "b2"
},
{
"a": "a2",
"b": "b3",
"c": "c2"
},
{
"a": "a2",
"b": "b4"
}
]
What's the best way to stroll through the shift operations? I tried multiple shift operations between the 3 arrays but could not get the desired output.