How to get a listing of key value pairs in an object?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6268679/best-way-to-get-the-key-of-a-key-value-javascript-object">best way to get the key of a key/value javascript object</a>  </p>
</blockquote>



<blockquote>
  <p>foo = {bar: "baz"}</p>
</blockquote>

<p>How do you get a listing of all the properties and values within foo? </p>
