Try writing YAML in combination with templating (such as in Salt). Because indentation means hierarchy, it's terrible. I'd much rather use JSON in such a context.
Can you point me at an example of what you're talking about? I can't really evaluate what you're saying with the information I have.