title: MongoDB dot (.) in key name
body: <p>It seems mongo does not allow insertion of keys with a dot (.) or dollar sign ($) however when I imported a JSON file that contained a dot in it using the mongoimport tool it worked fine. The driver is complaining about trying to insert that element.</p>
  
  <p>This is what the document looks like in the database:</p>
  
  <pre><code>{
      "_id": {
          "$oid": "..."
      },
      "make": "saab",
      "models": {
          "9.7x": [
              2007,
              2008,
              2009,
              2010
          ]
      }
  }
  </code></pre>
  
  <p>Am I doing this all wrong and should not be using hash maps like that with external data (i.e. the models) or can I escape the dot somehow? Maybe I am thinking too much Javascript-like.</p>