Jessegavin's answer already explains everything you asked for, but let me add one thing you didn't ask about, but maybe she will need to know in the future.
These are all valid JavaScript literals:
{ a: 0, b: 1, c: 2 } { 'a': 0, 'b': 1, 'c': 2 } { "a": 0, "b": 1, "c": 2 }
but only the last JSON is valid. Incorrect key quoting in JSON is probably the main reason for programs that produce invalid JSON, and invalid JSON seems to be the main source of the problems that people face with AJAX.
Not quite the answer to your question, but still it is relevant and may save you some problems in the future.
rsp
source share