刪除重複我有一個JSON名單如下:在jsonarray的Java
"edgelist":[{"value":15.0,"date":20130729,"type":"url","destination":"224883242"},
{"value":15.0,"date":20130729,"type":"url","destination":"224883243"},
{"value":15.0,"date":20130730,"type":"url","destination":"224883242"}
]
看看「目的地和日期..
目標224883242重複兩次..
我想要保持只是最新的獨特jsons ... 所以輸出將是
"edgelist":[ {"value":15.0,"date":20130729,"type":"url","destination":"224883243"},
{"value":15.0,"date":20130730,"type":"url","destination":"224883242"}
]
這樣做的最好方法是什麼?
如果目的地和日期相同,則保留但不是兩者。