I have a file having key value pairs in the following format
key1:value1, key2:value2 ...
I want to load the file into mongodb using pymongo but I have been failing. I have tried json.loads but still not successful.
Is there some way to have some thing like
for records in file
for each key, value in record
Insert key, value for that specific record_id
: