1 Jun
2013
1 Jun
'13
11:29 a.m.
Yuval Greenfield wrote:
It's simpler, it's Python syntax, it's faster to parse.
I would warn strongly against the "JSON is Python syntax" meme.
Another warning - this javascript tidbit broke my heart more times than I care to admit:
var k = 'foo' var obj = {k: 'wonderful'} obj[k] undefined obj['k'] "wonderful"
*sigh* brother! worse if instead of a generic k you have: var MY_CONFIGURATION_CONSTANT = 'foo'; fortunately JSON does not allow unquoted keys (and variables...) so at least his behaviour does not make surprises. -- ZeD