04 Nov '13, 11pm

Catching Invalid JSON Parse Errors with Rack Middleware

Catching Invalid JSON Parse Errors with Rack Middleware Posted by croaky on November 05, 2013 — 0 comments The middleware in Rails that parses parameters (ActionDispatch::ParamsParser) runs long before your controller is on the scene, and throws exceptions when invalid JSON is encountered. Fortunately, it's easy to write custom middleware that rescues the errors thrown when JSON can't be parsed .

Full article: http://www.rubyflow.com/items/10009-catching-invalid-json...

Tweets

Catching Invalid JSON Parse Errors with Rack Mi...

robots.thoughtbot.com 04 Nov '13, 10pm

Catching Invalid JSON Parse Errors with Rack Middleware Dan Collis-Puro November 04, 2013 rails json There is a world wher...

A nice solution to a common problem from Though...

robots.thoughtbot.com 05 Nov '13, 2pm

Catching Invalid JSON Parse Errors with Rack Middleware Dan Collis-Puro November 04, 2013 rails json There is a world wher...

"blisteringly fast json"

robots.thoughtbot.com 04 Nov '13, 10am

Fast JSON APIs in Rails with Key-Based Caches and ActiveModel::Serializers Josh Clayton May 30, 2013 performance ruby on r...

Quick Introduction to Rack”- This post is so awesome. #Rails

Quick Introduction to Rack”- This post is so aw...

rubylearning.com 05 Nov '13, 5pm

Rack is the foundation of a great majority of modern Ruby web frameworks. This common interface between web servers and we...