Mark Pearl

Space separated by a colon

Array/Lists Fruits:

  • Orange
  • Apple
  • Banana

The number of spaces in a property is key in YAML

Dictionary/Map Banana: Calories: 105 Far: 0.4g Carbs: 27 g

Fruit: Apple Vegetable: Carrot Meat: Chicken

When to use a dictionary, and when to use a list?

Dictionary is an unordered list, meaning the order of the properties does not matter

Lists are ordered collections, so the order of items matter

Any line beginning with a hash # is a comment



blog comments powered by Disqus

Want to get my personal insights on what I learn as I learn it? Subscribe now!


/