Merging row data based in common Ids in angularjs : I have a JSON data, Data =[{"Id":1,"Name":"Test","Datacol1":"1","Datacol2":0,"Datacol3":0},{"Id":2,"Name":"Test123","Datacol1":"1","Datacol2":2,"Datacol3":0},{"Id":1,"Name":"Test","Datacol1":"0","Datacol2":1,"Datacol3":0},
{"Id":1,"Name":"Test","Datacol1":"0","Datacol2":0,"Datacol3":2}]

I want to merge the data and put it in single row data based on Id some thing like this Output = [{"Id":1,"Name":"Test","Datacol1":"1","Datacol2":1,"Datacol3":2},{"Id":2,"Name":"Test123","Datacol1":"1","Datacol2":2,"Datacol3":0}]
can some one please help me in acheiving this using angularjs.