How to get a particular JSON element of an array? : <p>There is an <code>array</code> of <code>JSON</code>s :</p>

<pre><code>var a = [ {id:1, latlong:[...]} , {id:2, latlong:[...]} , ... ];
</code></pre>

<p>How to get the JSON element which key <code>id</code> equals 2 for example ?</p>
