dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dumping compact YAML
by ELISHEVA (Prior) on Jul 21, 2009 at 12:44 UTC | |
by dgaramond2 (Monk) on Jul 21, 2009 at 14:04 UTC | |
by Fletch (Bishop) on Jul 21, 2009 at 15:50 UTC | |
|
Re: Dumping compact YAML
by Your Mother (Archbishop) on Jul 21, 2009 at 18:08 UTC | |
|
Re: Dumping compact YAML
by Fletch (Bishop) on Jul 21, 2009 at 13:43 UTC | |
|
Re: Dumping compact YAML
by leocharre (Priest) on Jul 21, 2009 at 15:32 UTC |