title: JSON string parsed from BSON to dictionary
body: <p>I have a BSON document parsed into a JSON file as below:</p>
  <pre><code>&quot;_id&quot;: {
      &quot;$oid&quot;: &quot;62a2c8478adbafa1e43c069d&quot;
  },
  &quot;action&quot;: &quot;&quot;,
  &quot;client_id&quot;: {
      &quot;$numberInt&quot;: &quot;500389&quot;
  },
  </code></pre>
  <p>The result I wanna achieve is a nice dictionary just as if the BSON document was queried directly from the source DB without having to manually type cast the value based on the type followed such as  &quot;$iod&quot; or &quot;$numberInt&quot; demonstrated here:</p>
  <pre><code>{
  '_id': '62a2c8478adbafa1e43c069d',
   'action': '',
   'client_id': 500389,
  }
  </code></pre>