C#C
C#3y ago
arch_il

✅ Get this error while trying to Deserialize object

An unhandled exception of type 'System.InvalidOperationException' occurred in System.Text.Json.dll: 'Each parameter in the deserialization constructor on type 'AnimationTesting.Models.Room' must bind to an object property or field on deserialization. Each parameter name must match with a property or field on the object. The match can be case-insensitive.'

This is an error I get. I am not even sure what part of code to send, which would cause an issue.
Was this page helpful?