title: Return JSON with data from MongoDB
body: <p>I am fetching data from MongoDB as follows:</p>
  
  <pre><code>@bs = coll2.find("date" =&gt; {"$gte" =&gt; initial_date, "$lte" =&gt; Time.now.utc})
  </code></pre>
  
  <p>It works fine but when I render @bs, it sends empty.</p>
  
  <pre><code>  render :json =&gt; @bs
  </code></pre>
  
  <p>If I do a @bs.each and render each one as json, it works, however, I want to send the whole @bs. </p>
  
  <p>Thanks      </p>