From: basi Date: 2005-08-18T13:31:18+09:00 Subject: Re: YANQ: Nesting in YAML Yes, I screwed up the description of the problem big time. Here's a better description: Given the YAML statements: x: bb: - boo aa: - 2 - 3 y: cc: - see - sea aa: - 5 YAML produces: {"x"=>{"aa"=>[2, 3], "bb"=>["boo"]}, "y"=>{"aa"=>[5], "cc"=>["see", "sea"]}} I think I can handle picking up keys and values here, so I'm happy with the nesting. But now my problem is how to add extra levels of nesting to the YAML statements, where "see" has its own substructure, something like: x: bb: - boo aa: - 2 - 3 y: cc: - see sea: - weed - sick aa: - 5 The above doesn't parse. Gives the message: ArgumentError: parse error on line 9, col 7: ` sea: ' from c:/ruby/lib/ruby/1.8/YAML.rb:119:in `load' from c:/ruby/lib/ruby/1.8/YAML.rb:119:in `load' from (irb):52 from :0 My apologies for the incorrect OP. And thanks. basi value3