Anomaly with JsonSerializer
Hi there, I was trying serialize my game state class, but when I was deserializing it I got this anomaly error. I double checked my constructor and everything should be well, I don't understand what is the reason for the error
1 Reply
Please refer to the docs:
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/immutability#parameterized-constructors
Use immutable types and properties - .NET
Learn how to deserialize JSON to immutable types and properties in .NET.