Tutorial by Examples

YAML is a text based format allowing to store structured data in a hierarchy. YAML is designed to be human and machine readable with a minimum of overhead. The YAML specification can be found at yaml.org. There is also a reference card Comments start with # and go till newline, comments must be sep...
integer: 25 string: "25" float: 25.0 boolean: true null type: null
Same list level: - Cat - Dog - Goldfish Nested List: - - Cat - Dog - Goldfish
# This comment occupies a whole line - some item # This comment succeeds content of a line - http://example.com/#nocomment - "This # does not introduce a comment." - | This is a block scalar. A # inside it does not introduce a comment. # unless it is less indented than th...
With implicit keys: key: value another key: - some - more - values [1, 2, 3]: last value, which has a flow style key With implicit and explicit keys: ? key : value another key: - some - more - values ? [1, 2, 3] : last value, which has a flow style key key, another ...
- Without quotes: You can just split a long piece of text like this. - With quotes: "[But be careful: if you \"need\" punctuation, put double quotes around it. You can ev\ en split without spaces by using backslashes." - Or single quotes: 'This wor...
YAML supports three styles of escape notation: Entity Escapes a. space: " " b. colon: ":" c. ampersand: "&" Unicode Escapes a. space: "\u0020" b. single quote: "\u0027" c. double quote: "\u0022" ...

Page 1 of 1