This is my simple json code:
{
"status": 1,
"message": "This message"
}
With firebug console, I can get the status:
$({"status":1,"message":"This message"}.status)[0];
>>> 1
But getting message at the same way won’t work, I get undefined:
$({"status":1,"message":"This message"}.message)[0];
>>> undefined
I would obtain “This message”. What am I doing wrong?
Thank you!
look here http://jsfiddle.net/JxHme/