go-yaml: rejected, explained

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

A departure of kind position in the stance file of go-yaml. It covers 114 cases.

casetagscorpusperlreflibfyamlyamlstaryaml.v3go-yaml
shape/key/an explicit key whose own key is explicit key/not-a-string accept acceptedacceptedaccepted
value different, tagged
rejected, explainedrejected, explained
shape/key/two collection keys in one mapping key/not-a-string accept acceptedacceptedacceptedrejected, taggedrejected, explained
shape/key/a collection written as a flow entry's key alone key/not-a-string accept acceptedacceptedacceptedrejected, explainedrejected, explained
shape/reach/an explicit entry in a flow mapping used as a key accept acceptedacceptedacceptedrejectedrejected, explained
shape/schema/.inf schema/float-special accept acceptedacceptedacceptedacceptedrejected, explained
shape/schema/-.Inf schema/float-special accept acceptedacceptedacceptedacceptedrejected, explained
shape/schema/.nan schema/float-special accept acceptedacceptedacceptedacceptedrejected, explained
generated/7 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/41 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/45 json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/57 encoding/bom json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/109 json/not-representable representation/binary representation/float-non-finite accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/138 json/not-representable representation/float-non-finite representation/timestamp accept acceptedacceptedrejected, explainedacceptedrejected, explained
generated/144 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/144/stream accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/169 json/not-representable representation/float-non-finite accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/180 json/not-representable representation/float-non-finite accept acceptedrejected, explainedacceptedrejected, explainedrejected, explained
generated/186 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/206 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/248 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/352 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/422 json/not-representable representation/float-non-finite accept acceptedacceptedrejected, explainedaccepted
round trip different
rejected, explained
generated/439 json/not-representable representation/integer-wide accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/441 json/not-representable accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/450 json/not-representable representation/float-inexact representation/float-non-finite representation/float-out-of-range representation/timestamp accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/460 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/471 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedaccepted
round trip different
rejected, explained
generated/492 json/not-representable representation/integer-wide accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/505 json/not-representable accept acceptedrejected, explainedacceptedrejected, explainedrejected, explained
generated/507 json/not-representable representation/float-non-finite accept rejected, explainedacceptedrejected, explainedrejected, explainedrejected, explained
generated/542 json/not-representable representation/float-out-of-range accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/545 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/553 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/650 json/not-representable representation/float-non-finite accept rejected, explainedrejected, explainedrejected, explainedrejected, explainedrejected, explained
generated/698 encoding/bom json/not-representable representation/float-non-finite accept acceptedacceptedrejected, explainedaccepted
round trip different
rejected, explained
generated/746 encoding/bom json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/758 json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/778 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/794 json/not-representable representation/timestamp accept rejected, explainedacceptedrejected, explainedrejected, taggedrejected, explained
generated/809 json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/840 json/not-representable representation/float-non-finite accept acceptedrejected, explainedacceptedrejected, explainedrejected, explained
generated/898 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/908 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/923 json/not-representable accept acceptedacceptedacceptedrejected, explainedrejected, explained
generated/932 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/936 json/not-representable representation/float-non-finite accept acceptedacceptedrejected, explainedaccepted
round trip different
rejected, explained
generated/1081 encoding/bom json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained
generated/1085 json/not-representable representation/binary representation/float-out-of-range accept acceptedacceptedrejected, explainedrejected, explainedrejected, explained
generated/1154 json/not-representable accept rejected, explainedacceptedrejected, explainedrejected, explainedrejected, explained
generated/1200 json/not-representable representation/float-non-finite accept acceptedacceptedacceptedacceptedrejected, explained

The first 50 are listed, and 64 more are not. By tag counts every case.

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