All notes
Yaml

Quick Start

yaml.org: 1.2.



--- !clarkevans.com/^invoice
invoice: 34843
date   : 2001-01-23
bill-to: &id001
    given  : Chris
    family : Dumars
    address:
        lines: | # The literal style is denoted by the “|” indicator.
            458 Walkman Dr.
            Suite #292
        city    : Royal Oak
        state   : MI
        postal  : 48046
ship-to: *id001
product:
    - sku         : BL394D
      quantity    : 4
      description : Basketball
      price       : 450.00
    - sku         : BL4438H
      quantity    : 1
      description : Super Hoop
      price       : 2392.00
tax  : 251.42
total: 4443.52
comments: > # The folded style, new lines are folded into spaces.
    Late afternoon is best.
    Backup contact is Nancy
    Billsmer @ 338-4338.
# An explicit comment is marked by a '#' indicator.

Literal / Folded style

stackOverflow: use of pipe symbol.

Three dashes

YAML uses three dashes (“---”) to separate directives from document content. This also serves to signal the start of a document if no directives are present. If you have multiple documents per YAML file, you have to separate them by three dashes. Example:

# Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey

# Team ranking
---
- Chicago Cubs
- St Louis Cardinals