I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. Right now, I call the to_json method 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.
Is there way to configure or a method to make my JSON "pretty" or nicely formatted in RoR?
Thanks.