Lets say I have this JSON string
{"name": "myname", "id":12345, "passs":"configpass"}
Now passs is a typo. I’d like my serialization code (I can use json.net or the built in one in system.web) to throw an exception if it has a key (passs) which is not in my class. This way silly typos doesn’t cause frustration.
For the Json.Net serializer you can use the MissingMemberHandling in the JsonSerializerSettings