-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed as not planned
Closed as not planned
Copy link
Labels
Cost:LWork that requires one engineer up to 4 weeksWork that requires one engineer up to 4 weeksPriority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseTeam:LibrariesUser StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.area-System.Text.Json
Milestone
Description
User story tracking known semantic divergences/reliability bugs in System.Text.Json that we consider to be impactful and should be fixed in .NET 8.
.NET 8 plan
Property visibility and attribute handling
- System.Text.Json should handle attributes in virtual or shadowed properties consistently #73255
- Serialization of properties from inherited interfaces vs abstract base classes #41749
General
- [System.Text.Json] Allow
TimeOnlyas Dictionary key #77566 - .NET 7 Preview 7 - Polymorphic Deserialization ignores PropertyNameCaseInsensitive setting #75269
- [JsonSerializer] Relax restrictions on ctor param type to immutable property type matching where reasonable #44428
- Fix JSON issue (InvalidCastException) with ctor nullable enum ctor params having default values #68647
Addressed in .NET 7
Click to view
JsonSerializer issues
Enhancements
- JsonObject does not respect JsonIgnoreCondition.WhenWritingNull #54184
- Remove use of pool and buffer copy in Deserialize(ref Utf8JsonReader reader, ...) #70902
- Consider caching Utf8JsonWriter and PooledByteBufferWriter on a thread static in JsonSerializer.Serialize #69889
Bugs
- System.Text.Json.JsonSerializer does not work with Dictionary<string, object> #67588
- ArgumentNullException in System.Text.Json.Serialization.Metadata.JsonTypeInfo #58690
- JsonSerializer throw an InvalidCastException when serializing an array of item with a custom converter #46522
- System.Text.Json: JsonStringEnumConverter ignores its JsonNamingPolicy during deserialization. #31619
Error message improvements
Source generation Issues
Enhancements
- System.Text.Json source generator crashes when processing unresolved symbols #68072
- Use of JsonSerializerContext Can Cause CS1591 #61379
Bugs
- NullableConverter does not flow serialization state #65522
- Sync stream serialization not handling IAsyncEnumerable correctly #66687
- JSON source gen doesn't detect [JsonNumberHandling] when applied to POCO #58638 (moved to .NET 8)
Misc Reliability Enhancements
- System.Text.Json: Using JsonStringEnumConverter, after changing CurrentCulture to "sv-SE", enums with unknown negative values serialize strangely, and cannot be deserialized. #68600
- Test failed at double initialization assert in System.Text.Json.Serialization.Metadata.JsonTypeInfo.InitializePropCache() #60962
- System.Text.Json ObjectConverter does not handle reference metadata correctly on deserialization #67171
- [System.Text.Json] DeserializeAsyncEnumerable is delayed emitting objects when writing asynchronously to stream #70107
- Examine JsonSerializer behavior for ref structs & pointers #34779
- ArgumentNullException in System.Text.Json.Serialization.Metadata.JsonTypeInfo #58690
Metadata
Metadata
Assignees
Labels
Cost:LWork that requires one engineer up to 4 weeksWork that requires one engineer up to 4 weeksPriority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseTeam:LibrariesUser StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.area-System.Text.Json