I have a jQuery function – this is the response that is it is getting
{"d":"{\"res\":\"\\u003cdiv class=\\\"accordian_head\\\"\\u003e\\u003cdiv class=\\\"plus\\\"\\u003e\\u003c/div\\u00..........."NewTags\":\"\\........
when the response is just {“d”:” response…” } I have no trouble reading it in jQuery with just msg.d – but here I have “res” : “text” nested in “d” , so how to I read res out of this response ? I tried
success: function (msg) {
var obj = unescape(msg.d);
var res = unescape(obj.res);
var newtags = unescape(obj.NewTags);
Where the sample JSON I pasted is msg
How about:
This will unescape the quotes and parse the string to JSON.