Below is my JSON and i need JOLT to remove if destSiteName is unknown. Need to keep the rest of the object.
{
"destSiteName": "unknown",
"customer_code": "code1"
}
Below is my JSON and i need JOLT to remove if destSiteName is unknown. Need to keep the rest of the object.
{
"destSiteName": "unknown",
"customer_code": "code1"
}
2
Answers
You might use a shift transformation which contains two conditionals
"destSiteName"
or not ("*"
)or
"destSiteName"
is"unknown"
or not ("*"
)