I have the following message returned from a get:
{"status":"success"}
my code looks like this:
$.get(url, function(result) {
console.log(result)
console.log(result['status'])
console.log(result.status)
return false;
});
This prints the following:
{"status":"success"}
undefined
undefined
What am I doing wrong?