I have a JSON data and i want to count the json data if have a same value ?
{
"data": [
{
"ID": 47,
"desa": "Benteng Selatan",
"kecamatan": "Benteng"
},
{
"ID": 48,
"desa": "Benteng Selatan",
"kecamatan": "Benteng"
},
{
"ID": 49,
"desa": "Benteng Utara",
"kecamatan": "Benteng"
},
{
"ID": 50,
"desa": "Garaupa",
"kecamatan": "Bontomatene"
}
]
}
And show in text view, like : Benteng Selatan and Benteng : 2, Benteng Utara and Benteng : 1, Garaupa and Bontomantene : 1