Basic YAML Data Structures

Here are some different ways to represent common data structures in YAML:

Arrays

i_am_an_array:
    - value1
    - value2
    - value3

Hashes

i_am_a_hash:
    key1: value1
    key2: value2
    key3: value3
This page was last updated on 2008-09-17, 14:41.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.