generated/809

sha256 0e26eecad33f8c30033aee847453b5421f48e3998a771d2f2d70ef3cc92627bc

Document

%YAML 1.1
---
!
# c1
?
      &a1
      # c2
      '':	034
: &a2	|-
      a: b: c
# c3
*a2 :	|-
      aliased

Corpus

grammarvalid, vouched for up to construct
json/not-representableopen from construct on: each parser's stance decides
featuresnode/alias node/anchor node/tag-non-specific presentation/block-literal presentation/comment-above presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/plain presentation/quoted-single presentation/tab-separation presentation/yaml-directive value/mapping value/non-string-key value/string
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: b: c":"aliased","{\"\" 34}":"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, 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: map[string]interface {}{"":28}
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 [8:9] a mapping cannot be a JSON key

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