sha256 682265f282f7eb61df37b1e54be020aa78dfc76e80da33e42ef616388ba4ebdf
? ? a : 0 : v
| grammar | valid, vouched for up to construct |
| key/not-a-string | open from construct on: each parser's stance decides |
| features | none |
| meaning (yaml-1.2-core) | {"map[a:0]":"v"} |
go-yaml yaml.v3
refuse by the loader
libfyaml
accept, then the loader refuses past parse
perlref yamlstar
accept
yamlstar
{"{\"a\" 0}":"v"}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted refuse by the loader | unscored | n/i | value: the loader rejects the document past parse, where the verdict is given | TypeError: unhashable type: 'mapping' |
| yamlstar | accepted accept | diff, tagged | n/i | value: key/not-a-string: yamlstar has not ruled on this | |
| yaml.v3 | rejected, explained refuse by the loader | rejected, explained | 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 value: 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 {}{"a":0} |
| go-yaml | rejected, explained refuse by the loader | rejected, explained | 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 value: 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:3] a mapping cannot be a JSON key |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.