Beruflich Dokumente
Kultur Dokumente
---
Student-Id: 11223344
First-Name: John
Last-Name: Smith
Phone-numbers:
- 281.555.7689
- 713.555.8967
- 832.555.9980
Addresses:
- street: 123 Main St.
city: Houston
state: TX
...
Synopsis of YAML Basic Elements
The synopsis of YAML basic elements is given here:
Inline Sequence
• You can make a sequence in a short way.
Aliasing and Anchoring
• You can give an alias to a specific item using &
and name. Then, you can refer/anchor it with
* and its name.
Merging
• If you alias a map, you can merge that into the
current map with <<.
• Multilines
You can put multilines just by adding it. In this
case, one line break is ignored and consider it as
one line. In this example, there is no \n between
serialization and standard.
• Commenting
You can specify a comment using # to add an
additional information
• Serialization:Serialization process is required
in YAML that eases human friendly key order
and anchor names
• Presentation: The final output of YAML serialization
is called presentation. It represents a character
stream in a human friendly manner. An example for
YAML presentation process is the result of JSON
value created.
• Parsing: Parsing is the inverse process of
presentation; it includes a stream of characters
and creates a series of events. It discards the
details introduced in the presentation process
which causes serialization events.