I am trying to get the output of serverStatus command via pymongo and then insert it into a mongodb collection. Here is the dictionary
{u\'metrics\': {u\'getLa
A solution that worked for me was to wrap the dictionary inside a python list:
new_item_to_store = list(dict_to_store.items())