I'm using Pymongo and flask to build a rest API, and the documents are stored in the following BSON format:
{'_id': ObjectId('123'), 'title':"test"}
how can I query the Mongo DB to get the document in the following format or convert the query result to the following format?
{'_id':'123', 'title':"test"}