title: Rails: How can I render multiple objects to JSON?
body: <p>I am trying to render multiple objects as JSON. This is my render call:</p>
  
  <pre><code>render :json =&gt; {:widget =&gt; @widget.to_json(:include =&gt; :foo), 
                   :updated =&gt; Time.now.to_i}
  </code></pre>
  
  <p>I have to use to_json because of the include, and the addition updated so I know when the last call was made. The problem is that the to_json is rendered as a String instead of the object structure of the widget.</p>
  
  <p>How do I get the full object structure of the widget and the updated information?</p>