facing one issue with Jolt -
Current input -
[
{
"test1": "A",
"test2": "X",
"test3": "Y",
"test4": "Z"
},
{
"test1": "B",
"test2": "X",
"test3": "Y",
"test4": "Z"
}
]
Output required is
[
{
"test1": "A",
"label": [
{
"test2": "X",
"test3": "Y",
"test4": "Z"
}
]
},
{
"test1": "B",
"label": [
{
"test2": "X",
"test3": "Y",
"test4": "Z"
}
]
}
]
Basically to merge the three attributes under one and the rest one should be outside
Tried with below Jolt but not working -
[
{
"operation": "shift",
"spec": {
"test1": "&",
"*": "row.&"
}
}
]
