How to render json with pretty print when in dev mode
<p>My action has:</p>

<pre><code>render json: {
   "user" : @user,
    "blah" : @blah
}
</code></pre>

<p>In dev mode, ie. Rails.env.development? is true I want to render the json using pretty print.</p>

<p>How can I do this?</p>