I also learned from the Sinatra list that there is a Rack middleware 
module you can load which which will perform the parsing of JSON POST 
data for you, so it just ends up in params. Tidy.

http://groups.google.com/group/sinatrarb/msg/6579132bee5fc0b2

http://github.com/rack/rack-contrib/blob/44322288f263dda0743183529efe4e04a240e76c/lib/rack/contrib/post_body_content_type_parser.rb
-- 
Posted via http://www.ruby-forum.com/.