When you get an error in a Rails application, using the default error handling you get output similar to the following:
The way that the Request Parameters section JSON is printed is very hard to read - it's impossible to see the hierarchy unless you pore through every line. Is there a way to have it displayed in a more readable way, using proper indentation? As an example:
{
"utf8"=>"✓",
"_method"=>"put",
"authenticity_token"=>"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task"=>{
"title"=>"Task1",
"instructions"=>"Do the task",
"weighting"=>"10",
"detail_attributes"=>{
"is_yes_no"=>"false",
"id"=>"1"
},
},
...
}