title: jQuery Accessing a JSON object?
body: <p>I get the following back from an <code>$.ajax({ POST.....</code></p>
  
  <pre><code>[{"total_votes":1,"options":[{"id":40,"vote_count":0,"users":[]},{"id":41,"vote_count":1,"users":[{"photo":"xxxxxxxxxxx.png","name":"XXXXX,"id":1}]},{"id":42,"vote_count":0,"users":[]}]}]
  </code></pre>
  
  <p>so I try to get total_votes with: </p>
  
  <pre><code>    success: function(e) {
          console.log(e['total_votes'])       
      }
  </code></pre>
  
  <p>also try to get </p>
  
  <pre><code>        console.log( e['options'].length() )
          console.log( e['options'][0]['id'] )
  </code></pre>
  
  <p>Suggestions on why I keep getting undefined? Also is there a better way to loop through options? </p>
  
  <p>Thanks</p>