YAML Framework Matrix

Test #3ALJ - Block Sequence in Block Sequence

YAML

- - s1_i1
  - s1_i2
- s2

Expected Events

+STR
+DOC
+SEQ
+SEQ
=VAL :s1_i1
=VAL :s1_i2
-SEQ
=VAL :s2
-SEQ
-DOC
-STR

Expected JSON

[
[
"s1_i1",
"s1_i2"
],
"s2"
]

cpp-event

 ok

java-event

 ok

java-json

 json_ok

js-yaml-json

 json_ok

libyaml-event

 ok

luajit-json

 json_ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pm-json

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 736.

perl5-pm-pl

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 736.

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl5-tiny-json

 error
YAML::Tiny found illegal characters in plain scalar: '- s1_i1' at /bin/perl5-tiny-json line 14.

perl5-tiny-pl

 error
YAML::Tiny found illegal characters in plain scalar: '- s1_i1' at /bin/perl5-tiny-pl line 13.

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok