YAML is a human-readable data serialization language that is often used for writing configuration files. Depending on who you ask, YAML stands for yet another markup language or YAML ain’t markup language (a recursive acronym), which emphasizes that YAML is for data, not documents.
In YAML, data is represented as a collection of key-value pairs, similar to how data is structured in a directory or JSON object. YML uses indentation to indicate the hierarchy of data, which is easy to read and understand even for people who are not familiar with programming
Here is an example of a simple YAML document that represents information about a person:
name: Chethan S Poojary
age: 22
occupation: Web Developer
In this example, the keys are ‘name’, ‘age, and ‘occupation’, and their corresponding values are ‘Chethan S Poojary’, ’30’, and ‘Web Developer’, respectively.