I have a jQuery Ajax function that calls a WCF Service. The service call succeeds:
function WCFJSON() {
var now = new Date();
var getFromDate = dateToWcf(new Date(now - (60000 * 1440)));
var userid = "1";
m_Type = "POST";
m_Url = "https://dev-04.boldgroup.int/ManitouDashboard/DashboardProxyService.svc/GetStats"
m_Data = '{"getFromDate": "' + getFromDate + '", "getValueList": [1, 2, 3, 7]}';
m_DataType = "json";
m_ProcessData = true;
CallService();
}
function CallService() {
$.ajax({
type: m_Type, //GET or POST or PUT or DELETE verb
url: m_Url, //Location of the service
data: m_Data,
dataType: m_DataType, //Expected data format from server
processdata: m_ProcessData, //True or False
crossdomain: true,
contentType: "application/json",
success: function (msg) { //On Successfull service call
ServiceSucceeded(msg);
},
error: function (jqXHR, textStatus, errorThrown) {
ServiceFailed("jqXHT: " + jqXHR.result + "Text Status: " + textStatus + " Error Thrown: " + errorThrown );
} // When Service call fails
});
}
and I can see the raw json response string is populated using fiddler, how do I extract the values returned in the json response? I would like do get the values store them in a list or an array in javascript. Thanks for any advice on this.