YAML
YAML (YAML Ain't Markup Language) is a human-readable data serialization format. It is used for configuration files and data exchange between programming languages. It is often used with web development frameworks and other systems that need to share data.
Filename extension | .yml, .yaml |
---|---|
Internet media type | text/yaml, text/x-yaml |
Type code | TEXT |
Uniform Type Identifier (UTI) | public.yaml |
Magic number | %YAML |
Developed by | YAML.org |
Latest release | 1.2 (October 21, 2009 ) |
Type of format | data serialization format |
Extended from | JSON |
YAML was first released in 2001 by Ingy döt Net[1], Brian Ingerson, and Oren Ben-Kiki. It was designed to be a more user-friendly alternative to other markup languages like XML and JSON. YAML's syntax is designed to be easy to read and write. It uses whitespace and indentation to organize data.
YAML is often used for configuration files, such as those used by web development frameworks like Ruby on Rails and Django. It is also used for data exchange between programming languages, especially in systems that use different programming languages for different components.
One of the key features of YAML is that it is designed to be easy for humans to read and write, while still being machine-readable. This makes it a popular choice for configuration files, as it allows developers to easily modify settings without needing to understand complex markup languages.
YAML is a superset of JSON, meaning that any valid JSON document is also a valid YAML document. YAML adds additional features, such as support for comments, anchors and aliases, and complex data types like maps and lists.
YAML has been implemented in many programming languages, including Python, Ruby, Java, and Perl. It is also supported by many text editors and IDEs, which can provide syntax highlighting and other features to make working with YAML easier.
YAML is a flexible and user-friendly data serialization format that is widely used in web development, system configuration, and other areas where data needs to be exchanged between different components.
Heading text
changeSyntax
changeYAML's syntax is designed to be simple and easy to read. It uses indentation and whitespace to organize data, rather than relying on explicit tags or markup. Here is an example of a YAML document
</syntaxhighlight>In this example, the document contains three key-value pairs, where the keys are `name`, `age`, and `email`
- name: John Smith
age: 35
email: john AT example.com
- name: Jane Doe
age: 28
email: jane AT example.com
YAML also supports more complex data structures, like maps and lists.
157.230.80.127, port 5201
- ↑ "Yahoo! Groups : sml-dev Messages :Message 4710 of 4822". web.archive.org. 2001-06-03. Archived from the original on 2001-06-03. Retrieved 2024-11-12.
{{cite web}}
: CS1 maint: bot: original URL status unknown (link)