I'm trying to read a text file contains dictionaries separated by comma, and convert to a list of dictionaries.
How can I do this with python?
I tried to read as json file or use split method
{
"id": "b1",
"name": "Some Name"
},
{
"id": "b2",
"name": "Another Name"
},
....
result should be:
[ {"id" : "b1", "name" : "Some Name"} , {"id" : "b2", "name" : "Another Name"}, .... ]