var jsonObj = {
"key1": "value1",
"key2": "value2"
}
$.ajax({
url: 'Service Url',
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(jsonObj),
cache: false,
success: function(result) {
//success callback
},
failure: function() {
}
});This code snippet is for sending JSON object to server through Ajax.