I suppose the answer Access / process (nested) objects, arrays or JSON is different from what I want to achieve. The above link questions about accessing object in from a nested array set.
I have an array of objects like below
[
{
"type": "type 1",
"status": "success"
},
{
"type": "type 2",
"status": "success"
},
{
"type": "type 1",
"status": "error"
},
{
"type": "type 1",
"status": "success"
}
]
What I intend to get is something like this
2 type 1 has an event success
1 type 1 has an event error
1 type 2 has an event success
Basically, I want the count of type whose status is success and error.
underscore.js might be useful here, but I could not make that happen. Help would be appreciated Thanks