Is it possible to convert decimals to integer when deserializing JSON using Newtonsoft.Json?
Suddenly our service is receiving JSON data containing decimal values where int types are expected, example: 18483.0.
As a result exceptions are thrown like "Newtonsoft.Json.JsonReaderException: Input string '18483.0' is not a valid integer."
Obviously this specific property is defined as integer, and I prefer not to change it to some decimal type, but to convert the input to int, and stripping the decimals (which are always .0 anyway).