sofadesign/limonade — pull request #31 by hellogerard (2012-07-17 18:07:59+00:00)
Title: Handle PUT/POST requests which have JSON in request body

Backbone.js and other such frameworks by default send PUT/POST data as JSON embedded in the request body. Backbone can be configured () to send ordinary form data in a field called 'model', but the application needs to be aware of this (). It would be nice for Limonade to transparently handle this type of request so that the application sees the request as a regular PUT or POST.

This pull request implements this. All tests still pass. Limonade decodes the JSON and populate the `$GLOBALS` array with the key-value pairs, just as a form post might do.