YAML Framework Matrix

Test #SBG9 - Flow Sequence in Flow Mapping

YAML

{a: [b, c], [d, e]: f}

Expected Events

+STR
+DOC
+MAP
=VAL :a
+SEQ
=VAL :b
=VAL :c
-SEQ
+SEQ
=VAL :d
=VAL :e
-SEQ
=VAL :f
-MAP
-DOC
-STR

Expected JSON



cpp-event

 ok

java-event

 ok

java-json

 n/a
{
  "a": [
    "b",
    "c"
  ],
  "[d, e]": "f"
}

js-yaml-json

 n/a
{
  "a": [
    "b",
    "c"
  ],
  "d,e": "f"
}

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

 ok

perl5-pm-json

 error
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 1
   Document: 1
 

perl5-pm-pl

 error
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 1
   Document: 1
 

perl5-pp-event

 error
Not Implemented: Flow Style 

perl5-pp-json

 error
Not Implemented: Flow Style 

perl5-pp-pl

 error
Not Implemented: Flow Style 

perl5-syck-json

 n/a
{"ARRAY(0x954700)":"f","a":["b","c"]}

perl5-syck-pl

 n/a
{
  'ARRAY(0x2128498)' => 'f',
  'a' => [
           'b',
           'c'
         ]
}

perl5-tiny-json

 error
YAML::Tiny found illegal characters in plain scalar: '[b, c], [d, e]: f}' 

perl5-tiny-pl

 error
YAML::Tiny found illegal characters in plain scalar: '[b, c], [d, e]: f}' 

perl5-xs-json

 n/a
{"ARRAY(0x1573118)":"f","a":["b","c"]}

perl5-xs-pl

 n/a
{
  'ARRAY(0xcbd080)' => 'f',
  'a' => [
           'b',
           'c'
         ]
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 n/a
{"a":["b","c"],"[\"d\", \"e\"]":"f"}