YAML Introduction

multiline

https://yaml-multiline.info/

dictionary vs. list vs. list of dictionaries

dictionary

This dictionary:

Banana:
  calories: 105
  fat: 0.4 g
  carbs: 27 g

is equal to:

Banana:
  calories: 105
  carbs: 27 g
  fat: 0.4 g

list

This list:

Fruits:
- Orange
- Apple
- Banana

is different than:

Fruits:
- Orange
- Banana
- Apple

list of dictionaries

Employee:
  Name: meleu
  Payslips:
    - Month: June
      Value: 4000
    - Month: July
      Value: 4500