I am using above method & it works well with one parameter in URL.
e.g. Students/getstud/1 where controller/action/parameter format is applied.
Just add these lines to your (somewhere after jQuery is loaded but before posting anything):
$.postJSON = function(url, data, func)
{
$.post(url, data, func, 'json');
}
Replace (some/all) $.getJSON with $.postJSON and enjoy!
You can use the same Javascript callback functions as with $.getJSON.
No server-side change is needed. (Well, I always recommend using $_REQUEST in PHP. http://php.net/manual/en/reserved.variables.request.php, Among $_REQUEST, $_GET and $_POST which one is the fastest?)
This is simpler than @lepe's solution.