$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: url,
data: "{'SerialNo':'" + JSON.stringify(name) + "'}",
dataType: "json",
success: function (data) {
var result = JSON.parse(data.d);
alert(result.StudentName);
},
error: function (xhr, textStatus) {
alert(JSON.stringify(xhr));
}
});