shape/key/two collection keys in one mapping

sha256 e7bdd1f0922bb4c09ab398bdfb83925f6f8266226b92a64fbce88543add5f146

Document

{{"": 0}: a, {"": 1}: b}

Corpus

grammarvalid, vouched for up to construct
key/not-a-stringopen from construct on: each parser's stance decides
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

accept

value

yamlstar

{"{\"\" 0}":"a","{\"\" 1}":"b"}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted refuse by the loader not scored n/i TypeError: unhashable type: 'mapping'
yamlstar accepted accept not scored n/i
yaml.v3 rejected, tagged refuse by the loader not scored refused key/not-a-string: yaml.v3 has not ruled on this yaml.v3: yaml: unmarshal errors:
go-yaml rejected, explained refuse by the loader not scored refused json-cannot-write: codec.ToJSON rejects a value JSON cannot hold: .inf, .nan, a collection as a key; the corpus tags some of these documents json/not-representable and leaves others untagged [1:2] a mapping cannot be a JSON key

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.