I am writing an API and it receives a JSON payload as the request body.
To get at it currently, I am doing something like this:
post \'/doSomething\'
You can also use Rack Middleware to parse it. See https://github.com/rack/rack-contrib Just use Rack::PostBodyContentTypeParser when initializing your Sinatra class.
use Rack::PostBodyContentTypeParser