how to replace value with constant value in json jolt?
Solution 1:
You can remove those attributes("geoLocation"
and "currentCondition"
) by a remove transformation, then use #
notation along with a shift transformation such as
[
{
"operation": "remove",
"spec": {
"geoLocation": "",
"currentCondition": ""
}
},
{
"operation": "shift",
"spec": {
"*": "&",
"#Snow": "currentCondition"
}
}
]