Input JSON value :
{
"age": [
{
"r": "r1",
"d": "{}"
}
]
}
Desired Output :
{
"age": [
{
"r": "r1",
"d": {}
}
]
}
I tried using modify-overwrite-beta but unable to replace string by empty dictionary.
2
Answers
You can use the following shift transformation spec in order to convert
{}
tonull
, and then modify transformation spec along withnotNull
function to return the desired result such asthe demo on the site http://jolt-demo.appspot.com/ is
You can use this spec: