title: MongoDB: how to find a value from json data?
body: <p>I am working with mongodb and would like to find a value from a <code>json</code> data.</p>
  
  <p>My <code>json</code> data looks like this:</p>
  
  <pre><code>{
    "_id": ObjectId("5306d69f80b1027ad2653dad"),
    "Tests": [{
      "_id": "52fda07f1e905ec468d93c29",
  
      "names": "Art Test",
      "script": "regression/purchase-back-forwd"
    }],
    "browser": ["GC"],
    "creationTime": ISODate("2014-02-21T04:31:27.883Z"),
  
  }
  </code></pre>
  
  <p>From this I have to find out <code>Tests.names</code>. </p>
  
  <p>I used this but it is not working.</p>
  
  <p>Here Jobs is the table</p>
  
  <pre><code>  db.Jobs.find({Tests.names:"Art Test"})
  </code></pre>