Comment Re:AJAX + JSON = Powerful combination (Score 1) 541
> JSON (JSON.org) just happens to be legal Python syntax...
Not quite right.
There's one key incompatibility between the two: "key" values in Python dictionaries must be quoted. So, the Javascript/JSON expression:
{key1: "value1", key2: "value2"} ... is equivalent to the following in Python:
{"key1": "value1", "key2": "value2"}
Not quite right.
There's one key incompatibility between the two: "key" values in Python dictionaries must be quoted. So, the Javascript/JSON expression:
{key1: "value1", key2: "value2"}
{"key1": "value1", "key2": "value2"}