How to remove repetitive element from a json file using python?

Viewed 12

I have several invalid "_id" in my JSON file as below, I would either like to remove them all as I Don't need them.

[{ 
    "_id" : ObjectId("abe415aa5e7133a4a61c0d8317875"),
    "id" : "149715690143449899009",
    "objectType" : "activity"
},
{
    "_id" : ObjectId("abe415aa5e7133a4a61c0d8317876"),
    "id" : "149715690141306650624",
    "objectType" : "activity"
}]
0 Answers
Related