Polymorphic Serialization Sample Quick sample showing the basics for implementing polymorphic serialization with System.Text.Json. Can be used as is, or extended for additional features (e.g. using attributes to map (de)serializable types).