我有一个 JSON 数据,我想计算 json 数据是否具有相同的值?
{
"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"
}
]
}
并在 TextView 中显示,例如: 南奔腾和奔腾 : 2, 文登北和文登 : 1, 加劳帕和邦托曼坦:1
最佳答案
关于java - 如何统计相同的json值并将其显示在textview中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58837595/