How to access a javascript object value without knowing the key
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a>  </p>
</blockquote>



<p>If I have a javascript object like this : </p>

<pre><code>data = {
    a : 2,
    b : 3
}
</code></pre>

<p>but a and b are arbitrary and decided at runtime. Is there any way to go through the object
and access all properties without knowing the key?</p>
