I am applying Jolt to NiFi but I am not getting the expected result.
Result
{
"from": "2020-07-16T18:14:00+00:00",
"to": "2020-07-16T18:15:00+00:00",
"values":
{
"score": 1.0,
"s": 0,
"t": 0,
"f": 0,
"count": 0,
"value": null,
"threshold": 0.5,
"threshold_min": 0.5
},
"aplication": "Magento",
"name": "ApdexAll"
}
Jolt
[{
"operation": "shift",
"spec": {
"*": "&"
}
}, {
"operation": "default",
"spec": {
"aplication": "${aplication}",
"name": "${name}"
}
}]
I need a json with just one level
{
"aplication": "Magento",
"name": "ApdexAll",
"from": "2020-07-16T18:14:00+00:00",
"to": "2020-07-16T18:15:00+00:00",
"values":
{
"score": 1.0,
"s": 0,
"t": 0,
"f": 0,
"count": 0,
"value": null,
"threshold": 0.5,
"threshold_min": 0.5
}
}