flow representation and current support

Brad Bowman <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Can any yaml document be represented fully in flow style?
(with { }  for hashes and [ ] for arrays at all levels)
I assume so, since JSON is a subset.

I ask because a blind programmer on another list mentioned that
braces and brackets are better than indentation when used with
a screen reader.

It should be possible to load one style and dump another,
but I was only able to emit flow style using a JSON Perl module.
What modules and tools should I recommend here?
(The original query was on a Perl list but tools in other languages
could be useful for this purpose).

Is there a longer indenting/flow equivalence example online?

Brad

-- 
  You cannot tell whether a person is good or bad by his vicissitudes in
  life. Good and bad fortune are matters of fate. Good and bad actions
  are Man's Way. Retribution of good and evil is taught simply as a moral
  lesson.                        -- Hagakure http://bereft.net/hagakure/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.