Can I Deserialize a JSON string that contains 0.0 in C#?
问题 The JSON I'm getting back from a webservice has an integer incorrectly represented as 0.0. My deserialization code looks like this: var serializer = new JsonSerializer(); var ret = serializer.Deserialize<T>(jsonTextReader); And I get an error like this: Input string '0.0' is not a valid integer. My question is, is there a way to specify a less strict deserialization method so that I can parse this string? EDIT: The web service returns no schema so I don't know why the deserializer tries to