The pain of serializing unions and closed class hierarchies with System.Text.Json: Exploring the .NET 11 preview - Part 7
The seventh part of a blog series on the .NET 11 preview tests how System.Text.Json handles the union types and closed class hierarchies being added in .NET 11 and C# 15. The author builds simple examples of each and attempts to serialize them, working through a series of errors. The post outlines differences between the two type hierarchies and sharp edges to watch for, and the author concludes the serialization could not be made to work.
AI-written summary, checked against the cited sources. How summaries work
