for example, I get the below list when querying from the DB [ { "a":"123", "b": "CAT" } { "a": "456", "b": null } { "a":"789", "b": "DOG" } { "a":"134", "b": null } ]
I want to remove the key and value when the value is null Expected [ { "a":"123", "b": "CAT" } { "a": "456" } { "a":"789", "b": "DOG" } { "a":"134" }
]
Please can someone help with this request, The reason I want to remove the null is the response which comes from the API ignores the null in the DB and looks like the expected, I have to match the response and the DB. Thanks in advance, Appreciate your time.