title: Need to generate an json array, then loop through the values
body: <p>I need to create some sort of a state for a bunch of elements on a page.
  The stats can be 1 or -1.</p>
  
  <p>Now on the server side I will generate a JSON array and put it in my .aspx page like this:</p>
  
  <pre><code>var someArray = { 100:-1, 1001:1, 102:1, 103:-1 }
  </code></pre>
  
  <p>How do I loop through each value now in javascript?</p>
  
  <p>BTW, is my JSON array format correct?</p>