title: RABL collection under a child node
body: <p>How do I create a child which has a RABL collection inside it?</p>
  
  <p>JSON needed : collection @listings should be a child of result.</p>
  
  <pre><code>{
      result: {
          listings: [
              {
                  id: 1,
  
              },
              {
                  id: 2,
  
              }
          ]
      }
  }
  </code></pre>
  
  <p>RABL template with a child having collection:</p>
  
  <pre><code>object false
  
  child @result =&gt; :result do
    collection @rents , :root =&gt; "listings", :object_root =&gt; false  
  
    attributes :id
  
  end
  </code></pre>
  
  <p>But I get output as with the above template :</p>
  
  <pre><code>{
      result: [
          {
              id: 1
          },
          {
              id: 2
          }
      ]
  }
  </code></pre>