Hacker News new | ask | show | jobs
by roenxi 652 days ago
If we're not being pedantic, YAML has almost nothing to do with JSON. A typical YAML file and a typical JSON file have no syntactical overlap at all. Practically speaking, YAML parsers are expected to also parse JSON despite it being an otherwise unrelated format. The entire idea that it is a "superset" is misleading. This isn't a C -> C++ transition.
1 comments

YAML 1.2 is actually a superset of JSON. C++ is not and never was a superset of C.