sha256 0342a9005a2a1253ef4e38d8759d382a23968011d61465e025f8de21f55adf7f
---
{<<: &a1 ["merged0": -3, "merged3": 7], ["NULL"]: !<tag:yaml.org,2002:str> "-1_0"}
| grammar | valid, vouched for up to construct |
| json/not-representable | open from construct on: each parser's stance decides |
| features | break/cr node/anchor node/tag-verbatim presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/plain presentation/quoted-double value/int value/mapping value/merge-key value/non-string-key value/sequence value/string |
| meaning (none stated) | |
go-yaml yaml.v3
refuse by the loader
libfyaml
accept, then the loader refuses past parse
perlref yamlstar
accept
yamlstar
{"[\"NULL\"]":"-1_0","merged0":-3,"merged3":7}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| 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 {}{"NULL"} |
| 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 | [2:41] a sequence cannot be a JSON key |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.