title: using eval() on json data
body: <p>I'm trying to use eval on a json formatted dataset to retrieve the value of an attribute i.e.,</p>
  
  <pre><code>[{"item_one":1, "item_two": 2, "item_three": 3}]
  </code></pre>
  
  <p>I'm using dajax for the ajax call within django like this:</p>
  
  <pre><code>@dajaxice_register
  def get_current_id(request):
      home_timeline = oauth_req(
      'http://api.twitter.com/1/statuses/home_timeline.json?count=1',
      settings.TWITTER_TOKEN_KEY,
      settings.TWITTER_TOKEN_SECRET
      )
      return simplejson.dumps({'home_timeline': home_timeline })
  </code></pre>
  
  <p>which gets this as it's callback:</p>
  
  <pre><code>function get_current_id_callback(data){
        if(data==Dajaxice.EXCEPTION){
          alert('Error! Something happens!');
        }
        else{
          console.log(data.home_timeline);
        }
      }
  </code></pre>
  
  <p>I don't understand why this gives me undefined:</p>
  
  <pre><code>console.log(eval(data.home_timeline.item_one))
  </code></pre>
  
  <p>what's the correct way to retrieve the value of item_one?</p>
  
  <p>Thanks.</p>