I would like to post Json to a web service on the same server. But I don\'t know how to post Json using JQuery. I have tried with this code:
$.ajax({ typ
I tried Ninh Pham's solution but it didn't work for me until I tweaked it - see below. Remove contentType and don't encode your json data
$.fn.postJSON = function(url, data) { return $.ajax({ type: 'POST', url: url, data: data, dataType: 'json' });