When I try to access the member of jasonp object(val.pc_eventDate) it gives undefined error. But the val object 12 member and all members has values.
$.ajax({
type: "GET",
url: URL,
dataType: "jsonp",
jsonp: "callback",
jsonpCallback: "GetAppointmentCallback",
success: ServiceSuccess,
error: ServiceFailed
});
function GetAppointmentCallback(json) {
$.each(json.GetAppointmentsResult, function (data_, val) {
var myDate = new Date(val.pc_eventDate.match(/\d+/)[0] * 1);
var time = GetPThhHmmMTime(val.pc_startTime.toString());
......
......
......
});
}