Hacker News new | past | comments | ask | show | jobs | submit login

Isn't YAML a subset of JSON? or vice versa?



YAML had a fuckton of sugar, where JSON has as little as possible, but the biggest differentiator is that YAML has references — you can express cyclic graphs. That's why it's a natural fit for fixtures and seed data in Rails: it natively handles relational data.


My understanding is that YAML is a superset of JSON.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: