FSharp.Json icon indicating copy to clipboard operation
FSharp.Json copied to clipboard

Deserializing union cases without values throws exceptions

Open Reenuay opened this issue 4 years ago • 0 comments

For example:

type A = A1 | A2 of int

Serializing A1 case gives "A1". But deserialization of "A1" throws an exception. The A2 case, on the other hand, works perfectly in both directions.

Reenuay avatar Sep 01 '21 08:09 Reenuay