Skip to content

Use polymorphic JSON serialization for WebSocket events #11

Closed

Description

@Garados007

System.Text.Json has introduced polymorphic JSON serialization which allows to serialize and deserialize objects without writing custom converter. This can make the user faced API simpler and easier to write new code. To get this working .NET 7.0 or higher is required.

Implementing this can break with old versions of the web server as this changes the handling of events completely.

More information: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism?pivots=dotnet-7-0

Activity

  1. added
    enhancement
    on Dec 31, 2022
  2. linked a pull request that will close this issueVersion 5 release #19on Oct 3, 2026
  3. added this to the Version 5.0 milestone on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions