I am trying to get a json .Which row has a null value I want to delete it using javascript. Suppose my json is like
[{
"unit_id": "9",
"CHGRAPHUpdatetime": {
"time": "2018-03-15 00:00:00"
},
"channelGraph": [{
"chkey": "ch1",
"list": "1"
}, {
"chkey": null,
"list": null
}]
}]
If chkey and chvalue is null then row will be deleted.
Expected result is
[{
"unit_id": "9",
"CHGRAPHUpdatetime": {
"time": "2018-03-15 00:00:00"
},
"channelGraph": [{
"chkey": "ch1",
"list": "1"
}]
}]
Could you please help me to resolve this problem.