YAML Framework Matrix

Test #LX3P - Implicit Flow Mapping Key on one line

YAML

[flow]: block

Expected Events

+STR
+DOC
+MAP
+SEQ
=VAL :flow
-SEQ
=VAL :block
-MAP
-DOC
-STR

Expected JSON



cpp-event

 ok

java-event

 ok

java-json

 n/a
{
  "[flow]": "block"
}

js-yaml-json

 n/a
{
  "flow": "block"
}

libyaml-event

 ok

luajit-json

 error
luajit: /bin/luajit-json:6: Cannot serialise table: table key must be a number or string
stack traceback:
	[C]: in function 'encode'
	/bin/luajit-json:6: in main chunk
	[C]: at 0x004044a0

nimyaml-event

 ok

perl5-pegex-event

 diff
Got Events:
+STR
+DOC
+SEQ
=VAL :flow
-SEQ
-DOC
+DOC
+MAP
=VAL :
=VAL :block
-MAP
-DOC
-STR

perl5-pm-json

 n/a
{"ARRAY(0x287f1c0)":"block"}

perl5-pm-pl

 n/a
{
  'ARRAY(0x250ad00)' => 'block'
}

perl5-pp-event

 error
+STR
Line      : 1
Message   : Not Implemented: Flow Style
Where     : /lib/perl5/YAML/PP/Lexer.pm line 526
YAML      : ""
  at /bin/perl5-pp-event line 18.

perl5-pp-json

 error
Line      : 1
Message   : Not Implemented: Flow Style
Where     : /lib/perl5/YAML/PP/Lexer.pm line 526
YAML      : ""
  at /lib/perl5/YAML/PP/Loader.pm line 52.

perl5-pp-pl

 error
Line      : 1
Message   : Not Implemented: Flow Style
Where     : /lib/perl5/YAML/PP/Lexer.pm line 526
YAML      : ""
  at /lib/perl5/YAML/PP/Loader.pm line 52.

perl5-syck-json

 error
Syck parser (line 1, column 7): syntax error at /lib/perl5/x86_64-linux-gnu-thread-multi/YAML/Syck.pm line 75, <> line 1.

perl5-syck-pl

 error
Syck parser (line 1, column 7): syntax error at /lib/perl5/x86_64-linux-gnu-thread-multi/YAML/Syck.pm line 75, <> line 1.

perl5-tiny-json

 n/a
{"[flow]":"block"}

perl5-tiny-pl

 n/a
{
  '[flow]' => 'block'
}

perl5-xs-json

 n/a
{"ARRAY(0x222dc40)":"block"}

perl5-xs-pl

 n/a
{
  'ARRAY(0x260fd00)' => 'block'
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 n/a
{"[\"flow\"]":"block"}