In a jQuery Ajax call to an ASP.NET page method like so:
function getUsers() {
$.ajax({
type: "POST",
url: "http://{localhost}:8078/Default.aspx/GetJson2",
data: "{}",
contentType: "application/json",
dataType: "json",
success: function (msg) {
$("#Result").text(msg.d)
}
)};
the data returned from the server is inside a property .d
of the msg
even though my CLR object has no such property. Why is this?