[Solved] pymongo result to String

Gives this: {u’_id’: ObjectId(‘5238273074f8edc6a20c48fe’), u’Command’: u’ABCDEF’, u’processed’: False} But really, all I want is ABCDEF in a string. What you get is a dictionary, you simply need to fetch what you want from it print myDict[ u’Command’] 0 solved pymongo result to String

[Solved] Using Python need to print in csv format

I slightly changed the input data into a form which would make more sense technically speaking. In addition I removed the ResultId() since this seems to be a special datatype which needs to be converted into a string separately before doing any further data handling after receiving the responses from the database. However, I would … Read more