PreviousNext

C# 9 records as strongly-typed ids - Part 3: JSON serialization

by bill-s, 2020-12-10T07:26:56.813Z

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.

Read More