title: How to get json with backbone.js
body: <p>I am trying to use backbones.js fetch to get json from a twitter search </p>
  
  <p>and my code below can someone tell me where I am going wrong?</p>
  
  <pre><code>(function($){
  
    var Item = Backbone.Model.extend();
  
    var List = Backbone.Collection.extend({
      model: Item,
      url:"http://search.twitter.com/search.json?q=blue%20angels&amp;rpp=5&amp;include_entities=true&amp;result_type=mixed"
    });    
  
    var ListView = Backbone.View.extend({    
      el: $('#test'),
      events: {
        'click button#add': 'getPost'
      },
      initialize: function(){
        _.bindAll(this, 'render', 'getPost');
        this.collection = new List();
        this.render(); 
      },
      render: function(){
        var self = this;      
        $(this.el).append("&lt;button id='add'&gt;get&lt;/button&gt;");
      },
      getPost: function(){
        console.log(this.collection.fetch());
      }
  
    });
  
    // **listView instance**: Instantiate main app view.
    var listView = new ListView();      
  })(jQuery);​
  </code></pre>
  
  <p>I am just getting started with backbone and I just want to console.log the json</p>
  
  <p>you can see my example here. jsfiddle.net/YnJ9q/2/</p>