YAML – Basics

We can define key/value pair in simple format.

We can define key/value pair in simple format.

We can create list for objects as well for simple values.

Below userdata is the object and the starting with – are the list items of the object.

We can create simple list for object, here we are not using key pair but all values are passed as list.

Note: – represents list items

We can have a nested list, as shown below,

We can define list in three different types,

Method 1

Method 2

Method 3