4 ms·
Since JSON is (a subset of) YAML, and YAML was actually designed to be human-readable, I'd say it's the better choice. http://yaml.org/ http://yaml.org/
by kbolino 15y ago
Since JSON is (a subset of) YAML, and YAML was actually designed to be human-readable, I'd say it's the better choice.
http://yaml.org/ http://yaml.org/
- masklinn 15y agoYAML's significantly more complex (and probably harder and more expensive to parse) tough.
- kbolino 15y agoI agree, and I wouldn't suggest it as your general-purpose data serialization language. However, for configuration files, which are loaded either once or at most infrequently, the cost is negligible (IMO) compared to the benefit to human readability (and comments).
- daeken 15y agoAgreed! I write a lot of fuzzers and often need to represent a large API with lots of interconnections. YAML makes this trivial.