YAML

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
    skills:
      - python
      - perl
      - pascal
- tabitha:
    name: Tabitha Bitumen
    job: Developer
    skills:
      - lisp
      - fortran
      - erlang

Leave a Comment