shape/reach/an explicit key indicator against a closing brace

sha256 5a7808a5c64d5166b020d1ef3b942c7328ae05f0d7638a6af7ec2685c631627a

Document

{?}

Corpus

grammarinvalid
tagsnone
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml perlref yamlstar

refuse by the parser

libfyaml yaml.v3

accept

value split

libfyaml

{"?":null}

yaml.v3



roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, invalid refuse by the parser n/i n/i
libfyaml accepted, explained accept not scored n/i plain-question-mark-before-flow-indicator: fy-tool reads a lone '?' right before ']', '}' or ',' as the plain scalar "?", where [126] ns-plain-first needs an ns-plain-safe character after it and [150] a separation after the '?' indicator: "[?]" is accepted as ["?"]
yamlstar rejected, invalid refuse by the parser not scored n/i Error: parse: Parser finished before end of input
yaml.v3 accepted, explained accept not scored same question-mark-before-closing-brace: yaml.v3 takes a lone '?' right before '}' as an explicit key with an empty key and value, where [142] needs a separation after the '?' indicator and [126] keeps it from opening a plain scalar: "{?}" is accepted. It rejects "[?]", and the valid "[? ]" with it
go-yaml rejected, invalid refuse by the parser not scored refused [1:2] '?' is not a scalar, and an explicit key needs a space after it

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