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⁡address=table⁡country=Canada,province=ON,city=Waterloo,streetAddress=615 Kumpf Drive,postalCode=N2V 1K8,founded=1988,companyName=Maplesoft,phoneNumbers=table⁡type=local,number=+1 (519) 747-2373,table⁡type=toll-free,number=+1 (800) 267-6583,table⁡type=fax,number=+1 (519) 747-5284
Export data to a YAML file in the home directory of the current user.
Mouse≔table⁡Genus=Mus,Species=musculus
MouseFamily≔Muridae
MouseOrder≔Rodentia
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