关于[C# 9 records as strongly-typed ids - Part 3: JSON serialization]的摘要:
In the previous post in this series, we noticed that the strongly-typed id was serialized to JSON in an unexpected way...When you think about it, it’s not really unexpected: the strongly-typed id is a “complex” object, not a primitive type, so it makes sense that it’s serialized as an object. But it’s clearly not what we want… Let’s see how to fix that.