generated/1694

sha256 e1df53eed2f4b49e7ebc209bcee5e2ce5e121a635de6ac9a86f10cf9cde13ab4

Document

---
?
   - "#a" # c1
   - -3 # c2
: &a1 859 # c3

Corpus

grammarvalid, vouched for up to construct
json/not-representableopen from construct on: each parser's stance decides
featuresbreak/cr node/anchor presentation/comment-inline presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/plain presentation/quoted-double value/int value/mapping value/non-string-key
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

{"[\"#a\" -3]":859}

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: 'sequence'
yamlstar accepted accept not scored n/i
yaml.v3 rejected, explained refuse by the loader not scored refused collection-key: yaml.v3 decodes a mapping into a Go map, and a Go map cannot take a sequence or a mapping as a key: "? [1, 2]" rejects the document yaml.v3: yaml: invalid map key: []interface {}{"#a", -3}
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 [3:4] a sequence cannot be a JSON key

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