I have a JSON dataset and I need to eliminate any categories with null values from it.
Specifically, I want to keep "Category":"start"
intact but remove any instances of "Category":null
.
I've come across solutions that achieve this but they end up deleting all categories, including "Category":"start"
, which is not what I'm looking for.
"First": [{
"category": "Start",
"name": "Start",
"key": 1,
"lastname": "xyz"
}, {
"category": null,
"text": "Step",
"key": 2,
"lastname": "xyz"
}, {
"category": null,
"text": "Condition",
"key": 3,
"loc": "xyz"
}