title: query javascript object
body: <p>Ive got a JSON string coming over and being assinged to a javascript object</p>
  
  <pre><code>{
     "results":[
        {
          "id":"460",
          "name":"Widget 1",
          "loc":"Shed"
        },{
          "id":"461",
          "name":"Widget 2",
          "loc":"Kitchen"
        }]
  }
  </code></pre>
  
  <p>Is there a way to "query" this data in javascript so I could search for an ID of 460 and get name and loc returned (other than just looping through the whole object)? I've got jQuery and Prototypejs available to use. </p>