{
"data": [{
"niccode": 12,
"dangerousprocess": 1,
"numofworkers": 32,
"avgworkers": 8,
"numoffactory": 1,
"row_no": 1
}, {
"niccode": 18,
"dangerousprocess": 2,
"numofworkers": "",
"avgworkers": 9,
"numoffactory": 1,
"row_no": 2
}, {
"niccode": 28,
"dangerousprocess": 2,
"numofworkers": 40,
"avgworkers": 110,
"numoffactory": 1,
"row_no": 3
}]
}
This is my JSON array. How can I count niccode? (count of niccode=3). Please help.
data.length?obj.data.lengthwhereobjis the variable referring to this objectniccodeproperty inside adataobjects, then with adata.lengthis enough