-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Deserializing JSON with properties that differ in casing #109768
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
Thanks, I can confirm this is a regression introduced by 455f540. We will be backporting a fix as soon as possible. |
Hello team! |
The fix will be included in the upcoming servicing release which I believe happens in January. An updated 9.0.1 NuGet package will also be pushed on the same date. |
Why is this issue assigned to 9.0.x milestone and not 9.0.1 or 9.0.2? |
We don't track separate milestones for each servicing release. |
Description
It appears there is a regression in STJ when one migrates from .NET 8 to .NET 9 when one wants to deserialize JSON where there are two properties that differ in casing (e.g.
[JsonPropertyName("a")]
and[JsonPropertyName("A")]
).Reproduction Steps
Put the following console app code in
Program.cs
and run it usingdotnet run
:Expected behavior
No exception should be thrown as in .NET 8.
Actual behavior
Regression?
Yes. This works well in .NET 8.
Known Workarounds
I couldn't find any.
Configuration
.NET 9 GA
The issue does not appear to be platform specific.
Other information
I'm not sure if this issue is related to #108790 or not. It's the most similar issue I could find.
The text was updated successfully, but these errors were encountered: