title: How to "pretty" format JSON output in Ruby on Rails
body: <p>I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. </p>
  
  <p>Right now, I call <code>to_json</code> and my JSON is all on one line.  At times this can be difficult to see if there is a problem in the JSON output stream.</p>
  
  <p>Is there way to configure to make my JSON "pretty" or nicely formatted in Rails?</p>