Skip to content

Support JsonExtensionData in source generator fast path #58943

Open
@layomia

Description

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").

Metadata

Assignees

No one assigned

    Labels

    Cost:SWork that requires one engineer up to 1 weekPriority:3Work that is nice to havearea-System.Text.Jsonsource-generatorIndicates an issue with a source generator feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions