Re:Show HN: JSON5 — modern JSON
by zacharyvoase on Sunday May 27, 2012 @11:41PM
(#4031820)
Can I ask why YAML wasn't good enough?
[ Parent
| on HN ]
My thoughts exactly. YAML is a superset of JSON that already has all this stuff and more.
I actually had no idea that YAML is a superset of JSON. Thanks! I'll look into it.
Re:Show HN: JSON5 — modern JSON
by silentbicycle on Monday May 28, 2012 @01:05AM
(#4032028)
For the same reason sexps weren't good enough, apparently.
Re:Show HN: JSON5 — modern JSON
by erikpukinskis on Sunday May 27, 2012 @11:55PM
(#4031855)
Partly because JSON has the lovely feature of being able to just eval() it into an object in browsers.
That's not really a lovely feature in this day and age. If anything it's an unfortunate artifact, as the right way to deserialize JSON is JSON.parse().
Re:Show HN: JSON5 — modern JSON
by alcuadrado on Monday May 28, 2012 @12:00AM
(#4031863)
That's not the right way to parse JSON, it's really insecure