I am getting following values from server
{"status":{"message":"success","code":200},"data":[{"sent":"test","category":"Appo","experience_time":"2014-10-07","sent_id":4501922,"categoryId":4011,"score":"Negative","feature":"emp","op":"challenges"}]}
I need to get the value of sent,category,experience_time,sent_id,score,feature,op etc
I have tried following so far.But not getting any value.
var result = jQuery.parseJSON(data);
$.each(result, function(index, value) {
alert(value.score);
});
$.each(result.data, function(index, value) {});sinceresult.datacontains the array you want to iterate overdatais a string not a object before callingjQuery.parseJSON(data)- check your browser console to see whether there are any errors?