I am working with a JSON object named "programs" that contains an array of key/value pairs. My task is to determine the count of objects within this array that have the key/value pair "status": "Review". In this case, there are 4 objects in total and 2 of them have "status": "Review". The desired output is to return this count, which would be (2).
{
"id": 3,
"organizationName": "Watertown School",
"programs": [
{
"id": 72,
"programId": 456456,
"programName": "name 1",
"programType": "Phd",
"applicationType": "Domestic",
"concentration": "Medicine",
"formId": 0,
"isReviewed": true,
"status": "Review"
},
{
"id": 73,
"programId": 4564561,
"programName": "name 2",
"programType": "Phd",
"applicationType": "Domestic",
"concentration": "Medicine",
"formId": 0,
"isReviewed": true,
"status": "Draft"
},
{
"id": 74,
"programId": 10343431,
"programName": "name 3",
"programType": "Phd",
"applicationType": "Domestic",
"concentration": "Medicine",
"formId": 0,
"isReviewed": true,
"status": "Review"
},
{
"id": 75,
"programId": 10031,
"programName": "namw 4",
"programType": "Phd",
"applicationType": "Domestic",
"concentration": "Medicine",
"formId": 0,
"isReviewed": true,
"status": "Draft"
},
]
}