comment 0

YAML or JSON ?

yamlI am not really conviced by YAML over JSON.

For me, it has the following advantages:

  1. Easy to read
  2. information is not lost in a sea of “<” and “>” like with XML
  3. 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:

  1. No schema specification. You’ll have to implement you how schema and schema checker
  2. 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!