Deserializing JSON into polymorphic classes with System.Text.Json
Read OriginalThis technical article details the process of writing a custom JsonConverter for System.Text.Json to handle polymorphic deserialization. It uses the concrete example of building SpaceDotNet, a typed SDK for the JetBrains Space API, explaining how to map various JSON type descriptors (like arrays, DTOs, enums) into a corresponding .NET class hierarchy for API introspection and code generation.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser