Grails: where does request.JSON come from, and how do I put things there with jQuery's .ajax() or .post()?
I have a controller that takes some json in the ?request body? and does awesome things with it: def myController(){ def myAction(){ println "Here is request.JSON: ${request.JSON as JSON}" println "Here is params: $params" //do awesome stuff with request.JSON only return } } So I can hit this with cURL like so: curl -i -H "content-type: application/json" -d "{\"someVariable\":\"Absolutely\"}" And my grails controller prints: Here is request.JSON: {"someVariable":"Absolutely"} Here is params: [controller:'myController', action:'myAction'] So far so good, but when I try to do this with jQuery it