Getting specific key and value from jquery object
<p>I am getting keys and values from php associative array to jquery object:</p>

<pre><code>$names = array("Peter"=&gt;"35", "Ben"=&gt;"37", "Joe"=&gt;"43");
$js = json_encode($names);
echo 'var names= ' . $js . ";";
</code></pre>

<p>Now I know how to iterate through all of the names and get their key and value:</p>

<pre><code>$.each(names, function(key, value){
   alert(key + value);
});
</code></pre>

<p>But I need only specific value. For example how can I get only "Ben" and "37" without iterating through all the names?</p>