File contains the following data:
{ "_id" : ObjectId("5c04cc50792d7153282a0874"), "Name" : "Nimish", "Marks" : "100" }
{ "_id" : ObjectId("5c04cc61792d7153282a0875"), "Name" : "Ayush", "Marks" : "78" }
I need these data to be converted to list of dictionaries.
Have tried ast.literal_eval()
but it generates malformed node or string
error.