My JSON response creation looks like this :
{
"G5LDUHRPEEA6B-39CFBWYA": [],
"JMSK0DKOEEA0UXMY750O3W": [],
"ISVN8JF1EEAD3W398ZNOSA": [
{
"delloData": "1478644629",
"ref": "75",
"dataType": "String",
"somePart": LA,
"hello": "OUTSIDE"
},
{
"delloData": "1478644629",
"ref": "75",
"dataType": "String",
"somePart": Chicago,
"hello": “Inside"
},
{
"delloData": "1478644629",
"ref": "75",
"dataType": "String",
"somePart": Austin,
"hello": “Inside"
}
],
"VRG0IJF1EEAD3W398ZNOSA": [{
"delloData": "1478644629",
"ref": "75",
"dataType": "String",
"somePart": Chicago,
"hello": “Inside"
},
{
"delloData": "1478644629",
"ref": "75",
"dataType": "String",
"somePart": Austin,
"hello": “Inside"
}],
"OGAESJF2EEAD3W398ZNOSA": [],
"SC9OMJF2EEAD3W398ZNOSA": []
}
I am in need of counting the total number of items within the arrays, even if they have internal arrays. I want to exclude empty internal arrays such as "SC9OMJF2EEAD3W398ZNOSA": []. I attempted _.size(collection) but require assistance on how to eliminate empty internal arrays. Appreciate your help in advance.