Support JsonExtensionData in source generator fast path #58943
Labels
area-System.Text.Json
Cost:S
Work that requires one engineer up to 1 week
Priority:3
Work that is nice to have
source-generator
Indicates an issue with a source generator feature
Milestone
Per #51945 (comment) and #58912 (comment), the feature is currently not supported in fast-path serialization and the serializer falls back to a metadata-based implementation if provided/configured by the source generator.
We should target 7.0 - it is technically feasible to do this now, just a bit complex & a large diff at this stage in 6.0. Concretely, extension data properties (dictionaries) can have typeof(object) values which is a polymorphic scenario currently not supported in fast-path.
We should also consider deserialization support for this feature, alongside #55043 ("Consider fast-path deserialization logic in JSON source generator").
The text was updated successfully, but these errors were encountered: