.yaml
or .yml
extension and are widely supported in programming languages like Python, Ruby, and Java.
#
symbol.name: "Ram"
, age: 30
, isStudent: false
.Feature | YAML | JSON | XML |
---|---|---|---|
Readability | High | Moderate | Low |
Verbosity | Low | Moderate | High |
Data Types | Basic (no dates, binary) | Basic (no dates, binary) | Supports complex types |
Comments | Yes | No | Yes |
Use Case | Configuration, data exchange | Data interchange, APIs | Document markup, legacy APIs |
&
) and aliases (*
) to avoid repetition.