I'm trying to develop a web application using jQuery, AJAX and JSON. I have this code:
console.log(response.s);
if (response.s == true) {
alert('good');
} else {
alert('bad');
}
This response (via console.log() on Firebug) seems to be:
{"s":true}
Which seems to be a JSON object right?
Well, the line console.log(response.s); on the first code I added here returns undefined. What's the problem?