Skip to content

andrhamm/catch_json_parse_errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatchJsonParseErrors

A Rack middleware for catching JSON parse errors and providing friendlier messages, all packaged up as a handy Railtie.

Credit to @djcp at thoughtbot for the original code as taken from this blog post.

Installation

Add this line to your application's Gemfile:

gem 'catch_json_parse_errors'

And then execute:

$ bundle

Or install it yourself as:

$ gem install catch_json_parse_errors

TODO

  • Write tests
  • Support Rails < 4.0

Contributing

  1. Fork it ( http://github.com//catch_json_parse_errors/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A Rack middleware for catching JSON parse errors and providing friendlier messages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages