Please try is as below.
Note:Use Post instead of Get.
$(document).ready(function () {
$.ajax({
type: 'POST',
dataType: 'json',
async: false,
url: 'MyWebService.asmx/SayHelloJson',
cache: false,
contentType: 'application/json; charset=utf-8',
success: function (data) {
alert('success');
},
error: function (err) {
alert(err.status);
}
});
});
Check for more info : 3 mistakes to avoid when using jQuery with ASP.NET AJAX