title: Yaml hierarchical data
body: <p>I'd like to represent a hierarchy in yaml, and I'm not sure how. For example, I'd like to say something like this:</p>
  
  <pre><code>name: "user1"
  programming-skill: 3
      java: 2
      python: 2
  cooking-skill: 4
  </code></pre>
  
  <p>When I throw this at a yaml parser, I get an error along the lines of "mapping values not allowed here" on the line <code>java: 2</code> because I'm trying to assign <code>programming-skill</code> to both <code>3</code> and the list <code>{java: 2, python: 2}</code>.</p>
  
  <p>What's the cleanest way to represent this hierarchical structure in yaml? Alternatively, is there a serialization format more suited than yaml to hierarchical structures?</p>