shape/reach/an explicit entry in a flow mapping used as a key

sha256 2c4833ec450bc4b2ffc08a21dfb37551a20ca919fa7fa16763aa6dcabf43a155

Document

{? a : b}: c

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

accept

yaml.v3

refuse by the parser

value

yamlstar

{"{\"a\" \"b\"}":"c"}

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 refuse by the parser not scored refused yaml.v3: yaml: did not find expected <document start>
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:1] a mapping cannot be a JSON key

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