If I have a JSON input like the below:
{
"a": [],
"b" : "cat",
"c" : "10001",
"g" : "",
"h" : {
"d": {},
"m": []
}
}
How could I write a function that would remove all rows where the value is brackets: {} or [], resulting in:
{
"b" : "cat",
"c" : "10001",
"g" : ""
}