I have json data:
{
"_id": ObjectId("5306e7fd80b1027ad2653db4"),
"testada": "ecom",
"id": "27"
} {
"_id": ObjectId("5306e81880b1027ad2653db5"),
"testada": "alorta",
"id": "27"
} {
"_id": ObjectId("5306e81880b1027ad2653db6"),
"testada": "france24",
"id": "23"
}
{
"_id": ObjectId("5306e81880b1027ad2653db6"),
"testada": "seloger",
"id": "23"
}
From this I have to remove one duplicate entry with id:27, just as in the case id:23
my result jsonlooks like this:
{
"_id": ObjectId("5306e81880b1027ad2653db5"),
"testada": "alorta",
"id": "27"
} {
"_id": ObjectId("5306e81880b1027ad2653db6"),
"testada": "france24",
"id": "23"
}
how is this possible
source
share