So, this should be simple in my mind... I have a valid JSON string being returned through an Ajax post:
{"success":true,"message":"Thank you! We value your feedback."}
And I'm simply trying to alert my "message" value onto my resulting post return:
success: function (result) {
alert(result);
var obj = $.parseJSON(result);
alert(obj.message);
},
error: function (req, status, error) {
alert("Sorry! We could not receive your feedback at this time.");
}
My "obj" attributes somehow aren't being recognized..... I've validated the JSON string to make sure it was valid, so what am I missing here?