Assuming we have the following class:
public class Foo {
public long Id { get; set; }
}
How can we tell newtonsoft json to throw a tantrum if a given json-string is:
{ "Id": 10, "SomethingIrrelevant": "Foobar" }
In other words we want the deserialization to be ultra-strict and throw a tantrum when it detects anything fishy of this sort taking place.