-Added CheckAdditionalContent to JsonSerializer/JsonSerializerSettings

-Fixed bad JSON in an array with error handling creating an infinite loop
-JsonTextReader no longer returns no content after consecutive underlying content read failures
This commit is contained in:
James Newton-King
2012-05-17 15:27:26 +12:00
parent e47a0eab58
commit bdc73900b5
12 changed files with 182 additions and 79 deletions
@@ -2529,7 +2529,8 @@ bye", reader.Value);
toggleReaderError.Error = false;
Assert.IsFalse(jsonTextReader.Read());
//a reader use to skip to the end after 3 errors in a row
//Assert.IsFalse(jsonTextReader.Read());
}
public class ToggleReaderError : TextReader