title: How to convert a nested model into a JSON in EmberJS?
body: <p>I have a nested EmberJS model hierarchy:</p>
  
  <pre><code>{
    name: 'abc',
    type: 123,
    rules: {
             condition1 : 'value1',
             condition2:   'value2'
             subrule: {
                         subcondition1: 'value1',
                         subcondition2: 'value2'
                       }
           }
  </code></pre>
  
  <p>I am not using Ember DS. 
  The problem is to give the model object arrays to a previewer which consumes JSON and not a typical get/set API of Ember Objects.</p>