title: Referencing only global locks from db.serverStatus().locks
body: <p>The server status command prints out locking information in the sub-document named "locks". In this sub-document, global locks are represented with the name "."</p>
  
  <p>( Source: <a href="http://docs.mongodb.org/manual/reference/server-status/" rel="nofollow">http://docs.mongodb.org/manual/reference/server-status/</a> ) </p>
  
  <p>I can print out this sub-document with the command <code>db.serverStatus().locks</code> and can print out most items with dot notation in the following manner:</p>
  
  <pre><code>&gt; db.serverStatus().locks.local
  {
          "timeLockedMicros" : {
                  "r" : NumberLong(83054),
                  "w" : NumberLong(0)
          },
          "timeAcquiringMicros" : {
                  "r" : NumberLong(3005),
                  "w" : NumberLong(0)
          }
  }
  </code></pre>
  
  <p>However, I'm unable to select the global lock information ( "." ) due to its...unfortunate naming. </p>
  
  <p>Below, please find my experience: </p>
  
  <pre><code>&gt; db.serverStatus().locks."."
  Mon Mar 03 15:55:35.681 SyntaxError: Unexpected string
  &gt; db.serverStatus().locks..
  ...
  ...
  &gt; db.serverStatus().locks...timeLockedMicros
  Mon Mar 03 15:56:04.438 SyntaxError: Unexpected token .
  </code></pre>
  
  <p>Is it possible to individually select this information?</p>