-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
System.Text.json deserialize doesn't support case insensitive Hashset #67311
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsDescriptionWe initialized hashset with case insensitive in object, we used system.text.json deserialize content from json file to object. Reproduction StepsExampleList json contains a list of string. Expected behaviorexpected to be case insensitive. Actual behaviorHashSet is case sensitive Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
@lyndaidaii can you please update your sample with a minimal, runnable repro example? BTW you can use triple back ticks above and below to format as code. |
Likely related to #30258. System.Text.Json does not currently support appending elements to properties with existing collections and we're looking to get this addressed in .NET 7. |
This issue has been marked |
Closing as duplicate of #30258. I should point out that the |
Description
We initialized hashset with case insensitive in object, we used system.text.json deserialize content from json file to object.
Noticed that Hashset was case sensitive, not insensitive as expected
Reproduction Steps
Expected behavior
expected to be case insensitive.
Actual behavior
HashSet is case sensitive
Regression?
No response
Known Workarounds
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: