YAML (.yml, .yaml) File Format
YAML file format
Description
Examples
References
YAML (YAML Ain't Markup Language) is a lightweight text-based data standard for describing structured data.
As a human-readable format, it offers an alternative to explicitly tagged structured data such as XML. The JSON format is a subset of YAML 1.2.
The YAML package provides tools for parsing and generating YAML expressions.
The general-purpose commands Import and Export also support this format.
Parse a YAML string as an expression.
YAML:-ParseString⁡[1, 2, 3.265, 6.01, 7.373]
1,2,3.265,6.01,7.373
Import data from a file in YAML format.
Import⁡example/address.yaml,base=datadir
table⁡phoneNumbers=table⁡number=+1 (519) 747-2373,type=local,table⁡number=+1 (800) 267-6583,type=toll-free,table⁡number=+1 (519) 747-5284,type=fax,founded=1988,companyName=Maplesoft,address=table⁡city=Waterloo,postalCode=N2V 1K8,province=ON,country=Canada,streetAddress=615 Kumpf Drive
Export data to a YAML file in the home directory of the current user.
Mouse ≔ table⁡Genus=Mus,Species=musculus
Mouse≔table⁡Species=musculus,Genus=Mus
MouseFamily ≔ Muridae
MouseFamily≔Muridae
MouseOrder ≔ Rodentia
MouseOrder≔Rodentia
MouseClass ≔ Mammalia
MouseClass≔Mammalia
Export⁡mouse.yaml,Mouse,base=homedir
80
YAML 1.2 Language Specification, http://www.yaml.org/spec/1.2/spec.html, yaml.org.
See Also
Formats
Formats,JSON
Download Help Document