3 ms·
As a JS developer, I use JSON because I can just put it directly in my code as a variable. Annoyingly, "x = some_json" is much less strict than "JSON.parse(som
by richthegeek 12y ago
As a JS developer, I use JSON because I can just put it directly in my code as a variable.
Annoyingly, "x = some_json" is much less strict than "JSON.parse(some_json)".
Whilst YAML is less ambiguous, the significant whitespace and not being able to just cut and paste an argument into usefuleness (without wrapping it in a parser) means the effort is too high for what little pay-off it provides.