-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
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
Fix regression in dictionary key serialization when registering custom primitive converters. #57138
Fix regression in dictionary key serialization when registering custom primitive converters. #57138
Conversation
…tom primitive converters.
Tagging subscribers to this area: @eiriktsarpalis, @layomia Issue DetailsReverts a breaking change intentionally introduced in #50074: when users register a custom converter for a primitive type in the reflection-based serializer, the key serialization logic for that type will fall back to the default converter, assuming it has been rooted by the current application. Fixes #53241.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...ries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs
Show resolved
Hide resolved
.../src/System/Text/Json/Serialization/Converters/Collection/DictionaryOfTKeyTValueConverter.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
Outdated
Show resolved
Hide resolved
...ries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs
Show resolved
Hide resolved
Hello @eiriktsarpalis! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Reverts a breaking change intentionally introduced in #50074: when users register a custom converter for a primitive type in the reflection-based serializer, the key serialization logic for that type will fall back to the default converter, assuming it has been rooted by the current application.
Fixes #53241.