YAML is a human-readable data serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted.
Eg:
name: Pradumana
age: 21
address:
city: Bangalore
state: Karnataka
country: India
phone:
office: 0000000
home:
- 1111111
- 2222222
- Similar to XML & JSON.
- We can't add commands.
- Strict syntax - (Indentation)
- Human readable data serialization language.
- Used in Kubernetes, Ansible, Docker, etc.
- Used to store data in key-value pairs.
- CI/CD tools like GitHub Actions, CircleCI, use YAML to create workflows.
- Yamllint - Check the the format of the file.
- YAML Validator - Check the the format of the file.
- YAML to JSON - Convert YAML to JSON.