I am not really conviced by YAML over JSON.
For me, it has the following advantages:
- Easy to read
- information is not lost in a sea of “<” and “>” like with XML
- I actually don’t like abiguity in json formatting. You don’t have the choice for yaml, if should be indented that way.
But suffers from these severs drawback:
- No schema specification. You’ll have to implement you how schema and schema checker
- Cannot handle large data: in XML, even if it is not recommended, you have have a extremely large XML file while still parsing it node after nodes. In YML, you simple load and dump the complete YAML file completely. Simplier, but harder!