title: Unable to deserialize Pymongo ObjectId and DateTime from JSON
body: <p>I am unable to deserialize the ObjectId() and datetime() from the MongoDB Json Document.</p>
  
  <p>My MongoDB Json Document will be as below:</p>
  
  <pre><code>result = "[(u'profileDetails', {u'basicDetails': {u'dateOfBirth': datetime.datetime(1992, 2, 1, 0, 0), u'customerCode': u'C037799'}, u'xDirLevel': {u'masterCode': 1}}), (u'_id', ObjectId('58872e99321a0c8633291b3f'))]"
  </code></pre>
  
  <p>I want to deserialize datetime() and ObjectId() functions.</p>
  
  <p>My Python Code is like below:</p>
  
  <pre><code>from bson import json_util
  
  def deserialize_mongoResult(mongoResult)
     result = json.dumps(mongoResult, default=json_util.default)
     print result
  </code></pre>
  
  <p>when i print the <code>result</code> it is as below:</p>
  
  <pre><code>"[(u'profileDetails', {u'basicDetails': {u'dateOfBirth': datetime.datetime(1992, 2, 1, 0, 0), u'customerCode': u'C037799'}, u'xDirLevel': {u'masterCode': 1}}), (u'_id', ObjectId('58872e99321a0c8633291b3f'))]"
  </code></pre>
  
  <p>Why it is not deserialized the object</p>