Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

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.

@ghost
Copy link

ghost commented Aug 10, 2021

Tagging subscribers to this area: @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 6.0.0 milestone Aug 10, 2021
Copy link
Contributor

@layomia layomia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost
Copy link

ghost commented Aug 10, 2021

Hello @eiriktsarpalis!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit c0662e8 into dotnet:main Aug 11, 2021
@eiriktsarpalis eiriktsarpalis deleted the fix-customkeyconverter-regression branch August 11, 2021 08:45
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom JsonConverter<string> implementation throws NotSupportedException when serializing a dictionary of strings in .NET 6 preview 4

2 participants