rack-middleware-json-parser
Simple rack middleware class that parses JSON requests and puts the result to env['rack.json']
Gemfile
gem "rack-middleware-json-parser", "~> 0.0.1", :require => "rack/middleware/json_parser"
Usage example for Siantra/Padrino:
In app.rb
use Rack::Middleware::JsonParser
In a controller
put '/the/action' do
my_json = env['rack.json']
my_json[:foo][:bar]
end