Skip to content

cblp/yaml-sucks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAML sucks.

YAML source yaml2json.hs yaml2json.py yaml2json.pl
- null
- false
- n
- off
[null,false,false,false]
[null, false, "n", false]
["null","false","n","off"]
UnexpectedEvent {_received = Nothing, _expected = Just EventStreamStart}
null
hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at ./yaml2json.pl line 11.

<<
"\u003c\u003c"
ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:merge'
  in "", line 1, column 1
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /usr/share/perl5/YAML/Loader.pm line 80.

"<<"
"\u003c\u003c"
"<<"
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /usr/share/perl5/YAML/Loader.pm line 80.

<<: {}
{}
{}
{"<<":{}}
- <<: {}
[{}]
[{}]
["<<: {}"]
"<<": {}
{}
{"<<": {}}
{"<<":{}}
<<: a
{"\u003c\u003c":"a"}
ConstructorError: while constructing a mapping
  in "", line 1, column 1
expected a mapping or list of mappings for merging, but found scalar
  in "", line 1, column 5
{"<<":"a"}
- 1_000_000
["1_000_000"]
[1000000]
["1_000_000"]
- 8
- 08
[8,8]
[8, "08"]
["8","08"]