YAML Framework Matrix

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

YAML

? a
: 13
1.5: d

Expected Events

+STR
+DOC
+MAP
=VAL :a
=VAL :13
=VAL :1.5
=VAL :d
-MAP
-DOC
-STR

Expected JSON

{
"1.5" : "d",
"a" : 13
}

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
{
  '1.5' => 'd',
  'a' => 13
}

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  '1.5' => 'd',
  'a' => 13
}

perl5-syck-json

 json_diff
{
   "1.5" : "d",
   "a" : "13"
}

perl5-syck-pl

 n/a
{
  '1.5' => 'd',
  'a' => '13'
}

perl5-tiny-json

 error
YAML::Tiny does not support a feature in line '? a' 

perl5-tiny-pl

 error
YAML::Tiny does not support a feature in line '? a' 

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  '1.5' => 'd',
  'a' => 13
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok