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.

Francis SusaimichaelRank #466 · 5.4K reputationPosted Jun 1, 2016, 10:20 PM EDT
Vijay134 reputationPosted Jun 1, 2016, 11:00 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jun 2, 2016, 12:32 AM EDT
Just replaces theslasesusing JS and then try to parse:
http://stackoverflow.com/questions/21036626/remove-backslashes-from-json-data-in-javascript
Vijay134 reputationPosted Jun 2, 2016, 2:40 AM EDT
Francisi unable to parse like that format too
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jun 2, 2016, 2:57 AM EDT
Just check youweb service returnedcorrect JSON format. You can checkit in thebelow online editor:
Vijay134 reputationPosted Jun 2, 2016, 3:13 AM EDT