4 ms·
He nailed it: XML should be used for markup, JSON or YAML for structured data.
by TomasSedovic 17y ago
He nailed it:
XML should be used for markup, JSON or YAML for structured data.
- Qz 17y agoIsn't YAML a subset of JSON? or vice versa?
- masterj 17y agoMy understanding is that YAML is a superset of JSON.
- blasdel 17y agoYAML 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.