Skip to content

YAML Pairs

Learn how YAML Pairs (!!pairs) work as an ordered sequence of key:value pairs, including duplicates, with explicit tagging and flow-style alternatives.

YAML Pairs

YAML Pair (!!pairs) is an ordered sequence of key:value pairs allowing duplicates.

YAML Pair is a common type used for modeling is the ordered list of named values, allowing duplicates.

For example:

Block-tasks: !!pairs
  - meeting: with team.
  - meeting: with boss.
  - break: lunch.
  - meeting: with client.
Equivalent JSONjson
{
  "Block-tasks": [
    [
      "meeting",
      "with team."
    ],
    [
      "meeting",
      "with boss."
    ],
    [
      "break",
      "lunch."
    ],
    [
      "meeting",
      "with client."
    ]
  ]
Navigation