Is there a simple way to manually serialize/deserialize child objects in a custom converter in System.Text.Json?
问题 NOTE: I am using Microsoft's new System.Text.Json and not Json.NET so make sure answers address this accordingly. Consider these simple POCOs: interface Vehicle {} class Car : Vehicle { string make { get; set; } int numberOfDoors { get; set; } } class Bicycle : Vehicle { int frontGears { get; set; } int backGears { get; set; } } The car can be represented in JSON like this... { "make": "Smart", "numberOfDoors": 2 } and the bicycle can be represented like this... { "frontGears": 3, "backGears"