I want to write a jolt transformation to get the below output
Input
{
"payload": {
"header": {
"abc": "demo",
"def": "demo1"
},
"payload": {
"qwer": "asdf",
"zxcv": "uiop"
}
}
}
Output
{
"header": {
"abc": "demo",
"def": "demo1"
},
"payload": {
"qwer": "asdf",
"zxcv": "uiop"
}
}
can this be achieved in jolt
2
Answers
Yes, we can achieve the expected output using jolt.
Here is the Jolt spec to get the expected output.
Here’s the Jolt transformation spec to achieve the desired output:
JSON