shape/key/two keys alike in text and different once resolved

sha256 878ec159e077c1226b0c424dbac735e8b62526e008a8d48b3c65c1a4dea6c012

Document

1: x
"1": y

Corpus

grammarvalid, vouched for up to construct
key/distinct-after-resolutionaccept from compose on, 3.2.1.1: keys resolving to different nodes are different keys, however alike they look
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml perlref yamlstar

accept

value

libfyaml yamlstar

{"1":"y"}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept not scored n/i
yamlstar accepted accept not scored n/i
yaml.v3 rejected refuse by the loader not scored refused yaml.v3: yaml: unmarshal errors:
go-yaml rejected, explained refuse by the loader not scored refused json-member-collision: codec.ToJSON writes each key as a JSON member name and rejects two distinct keys that write the same name, such as 1 and "1" [2:1] two keys write the JSON member "1", first defined at [1:1]

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