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.
| case | tags | corpus | perlref | libfyaml | yamlstar | yaml.v3 | go-yaml |
|---|---|---|---|---|---|---|---|
| shape/key/an explicit key whose own key is explicit | key/not-a-string | accept | accepted | accepted | accepted value different, tagged | rejected, explained | rejected, explained |
| shape/key/two collection keys in one mapping | key/not-a-string | accept | accepted | accepted | accepted | rejected, tagged | rejected, explained |
| shape/key/a collection written as a flow entry's key alone | key/not-a-string | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| shape/reach/an explicit entry in a flow mapping used as a key | accept | accepted | accepted | accepted | rejected | rejected, explained | |
| shape/schema/.inf | schema/float-special | accept | accepted | accepted | accepted | accepted | rejected, explained |
| shape/schema/-.Inf | schema/float-special | accept | accepted | accepted | accepted | accepted | rejected, explained |
| shape/schema/.nan | schema/float-special | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/7 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/41 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/45 | json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/57 | encoding/bom json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/109 | json/not-representable representation/binary representation/float-non-finite | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/138 | json/not-representable representation/float-non-finite representation/timestamp | accept | accepted | accepted | rejected, explained | accepted | rejected, explained |
| generated/144 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/144/stream | accept | accepted | accepted | accepted | rejected, explained | rejected, explained | |
| generated/169 | json/not-representable representation/float-non-finite | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/180 | json/not-representable representation/float-non-finite | accept | accepted | rejected, explained | accepted | rejected, explained | rejected, explained |
| generated/186 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/206 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/248 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/352 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/422 | json/not-representable representation/float-non-finite | accept | accepted | accepted | rejected, explained | accepted round trip different | rejected, explained |
| generated/439 | json/not-representable representation/integer-wide | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/441 | json/not-representable | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/450 | json/not-representable representation/float-inexact representation/float-non-finite representation/float-out-of-range representation/timestamp | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/460 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/471 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted round trip different | rejected, explained |
| generated/492 | json/not-representable representation/integer-wide | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/505 | json/not-representable | accept | accepted | rejected, explained | accepted | rejected, explained | rejected, explained |
| generated/507 | json/not-representable representation/float-non-finite | accept | rejected, explained | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/542 | json/not-representable representation/float-out-of-range | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/545 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/553 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/650 | json/not-representable representation/float-non-finite | accept | rejected, explained | rejected, explained | rejected, explained | rejected, explained | rejected, explained |
| generated/698 | encoding/bom json/not-representable representation/float-non-finite | accept | accepted | accepted | rejected, explained | accepted round trip different | rejected, explained |
| generated/746 | encoding/bom json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/758 | json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/778 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/794 | json/not-representable representation/timestamp | accept | rejected, explained | accepted | rejected, explained | rejected, tagged | rejected, explained |
| generated/809 | json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/840 | json/not-representable representation/float-non-finite | accept | accepted | rejected, explained | accepted | rejected, explained | rejected, explained |
| generated/898 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/908 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/923 | json/not-representable | accept | accepted | accepted | accepted | rejected, explained | rejected, explained |
| generated/932 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/936 | json/not-representable representation/float-non-finite | accept | accepted | accepted | rejected, explained | accepted round trip different | rejected, explained |
| generated/1081 | encoding/bom json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, explained |
| generated/1085 | json/not-representable representation/binary representation/float-out-of-range | accept | accepted | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/1154 | json/not-representable | accept | rejected, explained | accepted | rejected, explained | rejected, explained | rejected, explained |
| generated/1200 | json/not-representable representation/float-non-finite | accept | accepted | accepted | accepted | accepted | rejected, 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.