I have a JSON data and I want to a count two the same JSON object value, but I don't know how to add it
{
"data": [
{
"ID": 1,
"country": "Indonesia",
"city": "Jakarta",
},
{
"ID": 2,
"country": "Indonesia",
"city": "Jakarta",
},
{
"ID": 3,
"country": "Indonesia",
"city": "Medan",
},
{
"ID": 4,
"country": "USA",
"city": "New york",
},
Output like: -
