I know how to dump mongo document and load the dumped string.
from bson import json_util
ds = json_util.dumps(doc1)
doc2 = json_util.loads(ds)
But if the document is printed, how can I load the string as document or json?
"{'_id': ObjectId('62ece11feab8b0600f0d3f6e'), 'requestId': '1660645299359', 'ts': datetime.datetime(2022, 8, 5, 17, 21, 20, 303000)}"