title: how to append data to json in ruby/rails?
body: <p>Say i have this short code:</p>
  
  <pre><code>item = Item.find(params[:id])
  render :json =&gt; item.to_json
  </code></pre>
  
  <p>but i needed to insert/push extra information to the returned json object, how do i do that? </p>
  
  <p>Lets say i need to insert this extra info:</p>
  
  <pre><code>message : "it works"
  </code></pre>
  
  <p>Thanks.</p>