# YAML Test Matrix

--- &test-RR7F
  Title: Mixed Block Mapping (implicit to explicit)
  Tags: [ explicit-key, mapping ]

YAML

a: 4.2
? d
: 23

Expected Events

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

Expected JSON

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

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

dotnet-yamldotnet-json

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

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +NODE|
   1    0    0    0 +MAP |
   1    0    0    0 +PAIR|
   1    0    0    0 +NODE|
   1    0    0    0 +VAL |
   1    0    0    0 =TEXT|a
   1    1    1    1 -VAL |
   1    1    1    1 -NODE|
   1    1    1    1 =SYNX|:
   1    2    2    2 =WSPC|.
   1    3    3    3 +NODE|
   1    3    3    3 +VAL |
   1    3    3    3 =TEXT|4.2
   1    6    6    6 -VAL |
   1    6    6    6 -NODE|
   1    6    6    6 =EOL |\x0a
   2    0    7    7 -PAIR|
   2    0    7    7 +PAIR|
   2    0    7    7 =SYNX|?
   2    1    8    8 =WSPC|.
   2    2    9    9 +NODE|
   2    2    9    9 +VAL |
   2    2    9    9 =TEXT|d
   2    3   10   10 -VAL |
   2    3   10   10 -NODE|
   2    3   10   10 =EOL |\x0a
   3    0   11   11 =SYNX|:
   3    1   12   12 =WSPC|.
   3    2   13   13 +NODE|
   3    2   13   13 +VAL |
   3    2   13   13 =TEXT|23
   3    4   15   15 -VAL |
   3    4   15   15 -NODE|
   3    4   15   15 =EOL |\x0a
   4    0   16   16 -PAIR|
   4    0   16   16 -MAP |
   4    0   16   16 -NODE|
   4    0   16   16 -DOC |

perl-pp-perl

 na
{
  'a' => '4.2',
  'd' => 23
}

perl-pplibyaml-perl

 na
{
  'a' => '4.2',
  'd' => 23
}

perl-syck-perl

 na
{
  'a' => '4.2',
  'd' => 23
}

perl-xs-perl

 na
{
  'a' => '4.2',
  'd' => 23
}

perl-yaml-perl

 na
{
  'a' => '4.2',
  'd' => 23
}

py-pyyaml-py

 na
{'a': 4.2, 'd': 23}

py-ruamel-py

 na
{'a': 4.2, 'd': 23}

perl-tiny-json

 ni
YAML::Tiny does not support a feature in line '? d' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny does not support a feature in line '? d' at /yaml/bin/perl-tiny-perl line 15.