Can I make Json.net deserialize a C# 9 record type with the “primary” constructor, as if it had [JsonConstructor]?
Firstly, you only have to do this when you create your own constructors. This is due to the fact that on instantiation it won’t know which one to use. Secondly, note that (by default) the deserializer will use the property and constructor names and overwrite the ones you omit in the actual constructor type. Furthermore, … Read more