sha256 a3619b7d239157658b9386c0f6872a982a1e3893cc319d62440390c2d15edf64
%YAML 1.1 --- # c1 -0.0: TRUE # c2
| grammar | valid, vouched for up to construct |
| tags | none |
| features | break/crlf presentation/comment-above presentation/comment-inline presentation/document-marker presentation/plain presentation/yaml-directive value/bool value/mapping value/non-string-key |
| meaning (yaml-1.2-core) | {"0.0":true} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml yamlstar
{"0.0":true}libfyaml
{"-0.0":true}yaml.v3
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted accept | diff | n/i | ||
| yamlstar | accepted accept | ok | n/i | ||
| yaml.v3 | accepted accept | different, explained | differentdocument 0written -0: true read back {"0":true} |
value: json-cannot-write: yaml.v3 decodes a mapping with a key that is not a string into a map[any]any, which encoding/json cannot write, so the runner has no value for the document: "-0.0: true" | |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.