title: Backbone - Collections nested in Models
body: <p>Is it possible to nest collections within models?</p>
  
  <p>I know that you can create new collections in the initialize callback of a model, and create references that you can pass back and forth between the collection and parent model.  But is it possible to set the collection as part of the model, such that the JSON it exports looks like this:</p>
  
  <pre><code>{
    blah: 'blah',
    myCollection: [
        {
           foo: 'asdf',
           bar: 'qwer'
        },
        {
           foo: 'asdf123',
           bar: 'qwer123'
        }
    ]
  }
  </code></pre>
  
  <p>If not, how do you handle syncing a model with related collections to the backend?  Do you have to tap into backbone's sync and rebuild the JSON or is there something more seamless?</p>
  
  <p>Sorry if this question has been answered elsewhere.  I've looked around and seen some workarounds, but nothing that really answers what I'm looking for.</p>