Vijay

Vijay

  • NA
  • 150
  • 90.5k

How to parse data from Json Result in Jquery Ajax?

Jun 2 2016 1:02 AM
I am getting Json Data from WCF service. But I unable to extract/parse data in Jquery Ajax Call?
 
Ajax:
$.ajax({
type: 'GET',
contentType: 'application/json; charset=utf-8',
url: './Services/Service.svc/GetUserDetails',
data: { uname: 'e0205' },
async: false,
dataType: 'json',
success: function (response) {
//var testMsg = $.parseJSON(response);
alert(response.GetUserDetailsResult);
},
error: function (error) {
alert(error);
}
});
 
Json Data :
 
{"GetUserDetailsResult":"{\"Table\":[{\"UserName\":\"E0205\",\"EmpName\":\"Manjeet\",\"LocationName\":\"Gurgaon\",\"Designation\":\"Analyst\"}]}"}
 
Kindly suggest any possible ways. Thanks in advance. 

Answers (6)