Yaml stands for Ain't Markup Language. Originally it meant Yet Another Markup Language.
Yml is a human-reable data-serialization language.
It is used to represent data. Compare to Json/XML, it is more verbose & compact
- String
- Number
- boolean
- Key Value Pair
- Array/List
- Dictionary/Map
- Whitespace indentation is used for denoting structure; however, tab characters are not allowed as part of indentation.
- Comments begin with #
- List members are denoted by a leading hyphen (-) with one member per line
- Repeated notes are represented by "&" and then referenced using "*"
a: 123 (integer)
b: "Test" (string)
c: 123.00 (float)
d: !!float 123 (float via explicit data type prefixed by !!)
e: !!str 123 (string via explicit type)
f: true (or false)
g: !myClass {name: Chetan, dob: "21-08-1989"} (Local data type. use a single exclamation mark !)