The following is what I hope to be a minimal sequence of sequence of mappings which JYaml barfs on
- - a : b
- a : b
I'm sorry, I haven't taken the time to read the YAML specs properly to know if the YAML is wrong if it's
it JYaml that's the issue here. If it helps, I can say that this was output from data-object-yaml (a Haskell
YAML library).
org.ho.yaml.exception.YamlException: Error near line 2: End of document expected.
at org.ho.yaml.JYamlParserEvent.error(Unknown Source)
at org.ho.yaml.YamlDecoder.firstDocument(Unknown Source)
at org.ho.yaml.YamlDecoder.readObject(Unknown Source)
at org.ho.yaml.YamlConfig.load(Unknown Source)
at org.ho.yaml.YamlConfig.load(Unknown Source)
at org.ho.yaml.Yaml.load(Unknown Source)
Incidentally, I'm using JYaml from Scala, but I trust that is not relevant
Meh, I should have known better than to expect SF to preserve my indentation, and SF claims my upload is greater than 256K even though it's so tiny.
See http://hpaste.org/raw/30111/yaml_snippet or http://yaml.org/ypaste/705/index.html