We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using System.Text.Json, we can serialize Option<T> values to this:
Option<T>
{ "Value": 42, "IsSome": true, "IsNone": false }
but not deserialize it (it returns Option<T>.None).
Option<T>.None
The library should provide be a converter.
The JSON format could be something like this:
// Some { "Value": 42 } // None {}
Note: serialization with Newtonsoft.Json works as expected (with the IsSome/IsNone properties)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using System.Text.Json, we can serialize
Option<T>
values to this:but not deserialize it (it returns
Option<T>.None
).The library should provide be a converter.
The JSON format could be something like this:
Note: serialization with Newtonsoft.Json works as expected (with the IsSome/IsNone properties)
The text was updated successfully, but these errors were encountered: