title: Saving Backbone model and collection to JSON string
body: <p>I'm having problem saving Backbone.Model or Backbone.Collection objects to local storage.
  The problem is that when it saves, only the attributes gets saved and I do not want that.
  I'm actually using the backbone-localstorage thats provided in their sample TODO demo.</p>
  
  <p>This is their save function</p>
  
  <pre><code>save: function() {          
      localStorage.setItem(this.name, JSON.stringify(this.data));
  }
  </code></pre>
  
  <p>When I look at what JSON.stringify(this.data) returns, I see only the models or the collection's attributes gets sets. Is there a way to specify that I want to save the whole state the model and collection is in, not just the attributes? </p>