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
System.Text.son currently throws a clear exception if you ask it to serialize a F# DU (which IMO is the correct behavior)
NSJ instead uses its quirky encoding; I've seen many get bitten by it
Would happily take a PR that gives FsCodec.NewtonsoftJson the same failsafe behavior as STJ out of the box
The fast follow would be to port the auto* options from the STJ side, i.e. implement a UnionOrTypeSafeEnumConverterFactory to switch (see https://github.com/jet/FsCodec/blob/master/tests/FsCodec.SystemTextJson.Tests/AutoUnionTests.fs for the behavior)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System.Text.son currently throws a clear exception if you ask it to serialize a F# DU (which IMO is the correct behavior)
NSJ instead uses its quirky encoding; I've seen many get bitten by it
Would happily take a PR that gives FsCodec.NewtonsoftJson the same failsafe behavior as STJ out of the box
The fast follow would be to port the auto* options from the STJ side, i.e. implement a UnionOrTypeSafeEnumConverterFactory to switch (see https://github.com/jet/FsCodec/blob/master/tests/FsCodec.SystemTextJson.Tests/AutoUnionTests.fs for the behavior)
The text was updated successfully, but these errors were encountered: