Advantages of YAML over properties file :

  1. YAML group the similar properties and properties file do not.
  2. Hence easy to understand and much readable.
  3. Repeated properties entry can be avoided and understood easily.

Example :

# Employee records
- martin:
    name: Martin D'vloper
    job: Developer
      - python
      - perl
      - pascal
- tabitha:
    name: Tabitha Bitumen
    job: Developer
      - lisp
      - fortran
      - erlang

Leave a Comment