Rack middleware that will optionally format JSON responses. Just pass pretty=1 in the URL.
Add this line to your application's Gemfile:
gem 'rack-json-pretty-print', require: 'rack/json_pretty_print'
And then execute:
Or install it yourself as:
$ gem install rack-json-pretty-print
TODO: Write usage instructions here
- Fork it ( https://github.com/cyu/rack-json-pretty-print/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request