Features
YAML was created with the belief that all data can be adequately represented by combinations of lists, hashes, and scalar data. The syntax is relatively straightforward and was designed with human readability in mind, but also to be easily mapped to data types common to most high-level languages:
- Comments are denoted by the pound sign (#) and continue until the end of the line
- List members are denoted by a leading hyphen (-) with one member per line, or as comma-separated values enclosed in brackets ([ & ])
- Hashes are represented in the form key: value, either one per line or enclosed in parentheses (( & )) and delimited by commas
- Scalars may be double-quoted ("), single-quoted ('), or represented by an indented block with optional modifiers to preserve (|) or fold (>) newlines
- Multiple documents within a single stream are separated by three hyphens (---); three periods (...) optionally end a document within a stream
- Repeated nodes are initially denoted by an ampersand (&) and thereafter referenced with an asterisk (*)