I have a use case, where i need to drop a whole set of record if condition satisfied.
Input
{
"Location": "IND",
"Environment": "",
"Climate": "Summer",
"category": "City",
"status": "De-Active"
}
Condition : If "status" is equals to "De-Active", the set of record should be dropped or "null"
Output
null
My specs is working just opposite 🙂
[
{
"operation": "shift",
"spec": {
"status": {
"De-Active": {
"@2": ""
}
}
}
}
]
2
Answers
You can use this spec:
You can use such a conditional along with a shift transformation spec
the demoes on the site http://jolt-demo.appspot.com/ are :