Maarten Balliauw 1/29/2020

Deserializing JSON into polymorphic classes with System.Text.Json

Read Original

This 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.

Deserializing JSON into polymorphic classes with System.Text.Json

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week