Deserialize complex polymorphic types with System.Text.Json
问题 The dotnet example in the documentation: https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-converters-how-to#support-polymorphic-deserialization shows manually parsing each property of a polymorphic type. However: my polymorphic objects are complex deep hierarchies, I can't hand code every field so I need to invoke the JsonSerializer . the clue for the type is specified in sibling fields. Given there is no guarantee about json element order, a Utf8JsonReader may