3 ms·
After working with YAML and JSON (and XML and INI and CSV and so on), it seems like a) JSON is equivalent and simpler for basic structures, b) JSON + jq or a la
by l0b0 6y ago
After working with YAML and JSON (and XML and INI and CSV and so on), it seems like a) JSON is equivalent and simpler for basic structures, b) JSON + jq or a language library is better than YAML's complex syntax (like not being able to merge lists[1]), and c) YAML has too many ways to express the same thing. Writing YAML is basically trial and error.
[1] https://stackoverflow.com/q/24090177/96588 https://stackoverflow.com/q/24090177/96588
- jeremyjh 6y agoConfig files should support comments. JSON is being wedged into use cases it simply wasn't designed for.