remove duplicate objects in array

by schlomm

JavaScript

var places = [];
var a = {
	"target": "test/1",
	"idProperty": 109,
	"simulation_Id": 109,
	"project": "Riffgat",
	"timestamp": "10.07.2017",
	"username": "JM",
	"simulation_unit": "100m",
	"id": 454,
	"simulationGeometry": {
		"type": "polygon",
		"rings": [
			[
				[363579.37569999974, 5938667.4559],
				[363579.37569999974, 5939155.901799999],
				[363686.24370000046, 5939155.901799999],
				[363686.24370000046, 5938667.4559],
				[363579.37569999974, 5938667.4559]
			]
		],
		"_ring": 0,
		"spatialReference": {
			"wkid": 25832,
			"latestWkid": 25832
		}
	}
}

places.push(a);

var b = {
	"target": "test/1",
	"idProperty": 110,
	"simulation_Id": 110,
	"project": "Riffgat",
	"timestamp": "10.07.2017",
	"username": "JM",
	"simulation_unit": "100m",
	"id": 454,
	"simulationGeometry": {
		"type": "polygon",
		"rings": [
			[
				[363579.37569999974, 5938667.4559],
				[363579.37569999974, 5939155.901799999],
				[363686.24370000046, 5939155.901799999],
				[363686.24370000046, 5938667.4559],
				[363579.37569999974, 5938667.4559]
			]
		],
		"_ring": 0,
		"spatialReference": {
			"wkid": 25832,
			"latestWkid": 25832
		}
	}
}

places.push(b);


var c = {
	"target": "test1",
	"idProperty": 111,
	"simulation_Id": 111,
	"project": "Riffgat",
	"timestamp": "10.07.2017",
	"username": "JM",
	"simulation_unit": "100m",
	"id": 454,
	"simulationGeometry": {
		"type": "polygon",
		"rings": [
			[
				[363579.37569999974, 5938667.4559],
				[363579.37569999974, 5939155.901799999],
				[363686.24370000046, 5939155.901799999],
				[363686.24370000046, 5938667.4559],
				[363579.37569999974, 5938667.4559]
			]
		],
		"_ring": 0,
		"spatialReference": {
			"wkid": 25832,
			"latestWkid": 25832
		}
	}
}

places.push(c);


var d = {
	"target": "test/1",
	"idProperty": 109,
	"simulation_Id": 109,
	"project": "Riffgat",
	"username": "JM",
	"simulation_unit": "100m",
	"id": 454,
	"simulationGeometry": {
		"type": "polygon",
		"rings": [
			[
				[363579.37569999974,...