I need to write jolt spec for this transformation
Input :
{
"key": [
"a",
"b",
"c",
"",
"d",
"e",
"f",
""
]
}
Output should be :
{
"key": [
"a",
"b",
"c",
"d",
"e",
"f"
]
}
What would be jolt spec for above transformation , basically removing all empty string from array ?
The trick is to match the
""values with the valuenullsuch as"": null:the demo on the site https://jolt-demo.appspot.com/ is :