I have a json list as follows:
"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"}
]
Take a look at "destination and date..
Destination 224883242 is repeated twice..
What I want to keep is just latest unique jsons ... So the output would be
"edgelist":[ {"value":15.0,"date":20130729,"type":"url","destination":"224883243"},
{"value":15.0,"date":20130730,"type":"url","destination":"224883242"}
]
What is the best way to do this...?
If destination and date are same.. keep either but not both.