title: Object name in rendering JSON
body: <p>In Rails 4, when rendering an object, for example User, I am getting this:</p>
  
  <pre><code>{ "id" : 4 , "name" : "John" }
  </code></pre>
  
  <p>While, when using rails-api gem, I am getting this:</p>
  
  <pre><code>{ "user" : { "id" : 4, "name" : "John" } }
  </code></pre>
  
  <p>What would be more correct, and how can I make Rails to return the object key?</p>
  
  <p>Right now I am doing this in my controller:</p>
  
  <pre><code>render json: @user
  </code></pre>