yaml

Aliases
  • yaml
  • YAML
  • YAML Ain't Markup Language
  • Yet Another Markup Language
Image of Author
September 21, 2022 (last updated August 16, 2023)

YAML stands for either YAML Ain't Markup Language or Yet Another Markup Language (wikipedia on name). It is similar to JSON, TOML, XML, and other markup languages.

YAML is a complicated data format and should be used carefully.

Examples

testing the updated at.

Maps

Map / dictionary / hash data-types are represented via indentation. The following are equivalent.

{
  "a": {
    "b": {
      "c": "xyz"
    }
  }
}
a:
  b:
    c: xyz

Lists

List / array / sequence data-types are represented via dash-indented elements. The following are equivalent.

{
  "a": [1, 2, 3]
}
a:
  - 1
  - 2
  - 3

It can also be represented in a single line.

a: [1, 2, 3]

(For Obsidian users, note that Obsidian does not support spaces in tags even thought it is allowed within the yaml specification.)

Resources