YAML Framework Matrix

Test #RR7F - Mixed Block Mapping (implicit to explicit)

YAML

a: 4.2
? 23
: d

Expected Events

+STR
+DOC
+MAP
=VAL :a
=VAL :4.2
=VAL :23
=VAL :d
-MAP
-DOC
-STR

Expected JSON

{
"23" : "d",
"a" : 4.2
}

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

 error
Maximum parsing rules reached (1000)

perl5-pm-json

 json_ok

perl5-pm-pl

 n/a
{
  '23' => 'd',
  'a' => '4.2'
}

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  '23' => 'd',
  'a' => '4.2'
}

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
{
  '23' => 'd',
  'a' => '4.2'
}

perl5-tiny-json

 error
YAML::Tiny does not support a feature in line '? 23' at /bin/perl5-tiny-json line 14.

perl5-tiny-pl

 error
YAML::Tiny does not support a feature in line '? 23' at /bin/perl5-tiny-pl line 13.

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  '23' => 'd',
  'a' => '4.2'
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok