Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zacharyvoase
on May 28, 2012
|
parent
|
context
|
favorite
| on:
Show HN: JSON5 — modern JSON
Can I ask why YAML wasn't good enough?
chc
on May 28, 2012
|
next
[–]
My thoughts exactly. YAML is a superset of JSON that already has all this stuff and more.
aseemk
on May 28, 2012
|
parent
|
next
[–]
I actually had no idea that YAML is a superset of JSON. Thanks! I'll look into it.
silentbicycle
on May 28, 2012
|
prev
|
next
[–]
For the same reason sexps weren't good enough, apparently.
erikpukinskis
on May 28, 2012
|
prev
[–]
Partly because JSON has the lovely feature of being able to just eval() it into an object in browsers.
chc
on May 28, 2012
|
parent
|
next
[–]
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().
alcuadrado
on May 28, 2012
|
parent
|
prev
[–]
That's not the right way to parse JSON, it's really insecure
Too
on May 28, 2012
|
root
|
parent
[–]
And slow, JSON.parse is magnitudes faster than using user-javascript to parse it yourself.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: