Closed pkese closed 3 months ago
Note: The above example is just a minimal reproduction that I extracted from a real world sample,
i.e. I'm dealing with a REST API, that returns some properties as nulls while other properties get omitted from response.
This is released in v1.3.13:
JsonFSharpOptions.Default()
.WithSkippableOptionFields(SkippableOptionFields.Always, deserializeNullAsNone = true)
Thank you @Tarmil. I highly appreciate your effort.
What's the required set of options that gets the following code to work?
Either I'm getting:
Missing field for record type
or
The JSON value could not be converted to System.Double. Cannot get the value of a token type 'Null' as a number.