Is there a YAML module which can dump YAML in its compact form? I.e. instead of emitting:
key1: val1 key2: - elem1 - 2 - 3
it emits
{key1: val1, key2: (elem1, 2, 3)}?
(Sorry, don't know how to escape braces).
(Btw, I've resorted to JSON for solving my problem, but still wonder why there is no equivalent for this in the YAML modules.)
In reply to Dumping compact YAML by dgaramond2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |