YAML stands for YAML Ain’t Markup Language. It is super set of JSON. Therefore every JSON can convert to YAML but not the way around.
Feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Map
key : value
#Nested map
parent_key :
child_key1 : value1
child_key2 : value2
#Sequence
list_of_sth:
- first_item
- second_item
- thrid_item
#Mutiline string
mutiline_newline : |
this is consider and newline
and "Newline" character is preserve
mutiline_folded_string : >
this is consider as folded string
newline'll be replaced by space
#Document separator
doc1
---
doc2
Tools
- yamllint : validate yaml https://github.com/adrienverge/yamllint