In this article will talk about the Yaml and how we can use that.
What is Yaml?
It is a data serialization language. Its can easily by understand by humans. yaml usually used in writing the configuration files for the server, Database, etc. Yaml stand for yet another Markup Language.
In yaml we need to be extra cautious about the indentation.
Basic Yaml Syantax
In order to understand the Yaml Syntax we need to understand few things:
- Key value pair
Key value pair
In key value pair we have one key and one value and we can understand that from the below example:
It is a collection of similar type of data or we can also say that its a collection of ordered data. We can understand the Array/List from the below examples:
Its a collection of the unordered data Or we can also say that in this will talk about the different attributes of a key and you can understand that from the below example:
Model no: POCO X2