Anchors allow you to avoid repeating yourself inside the same YAML document. They are expended by the loader.
--john: &myanchorage: 30sex: malemary:<<: *myanchorsex: female# when loaded mary.age will be '30'
While there are many ways to specify boolean values in YAML files, there are only two recommended values to use:
foo: truebar: false
As sooon you have to write longer strings, you will need to learn about blocks and how they are rendered.
literal_block: |this is first linethis is 2nd line# lines are joined with a space in betweenfolded_block: > # valid yaml commentI have a bigdog. # this is not a comment, gets into string
I need to mention tags which are used for more advanced stuff, like loading custom objects, encrypted data. You need to know that they depend on the application loading the file.