Jul 22, 2025·6 min read
Keep Your Domain Clean: Deserializing with Private Setters in C#
Ever created a perfectly encapsulated C# domain object with private setters, only to find System.Text.Json can't deserialize data back into it? You don't have to expose your setters! Let's explore a clean solution.
C#.NETSystem.Text.Json+2 more