System.Text.Json polymorphic deserialization in .NET
System.Text.Json can deserialize JSON into derived or abstract types, and this post shows both routes: [JsonPolymorphic] with [JsonDerivedType], and a custom JsonConverter with a type map for payloads whose discriminator is not $type.