-Fixed error when deserializing nullable types with no content
-Changed JsonReaders to set TokenType to JsonToken.None after finishing content -Changed the ReadAsXXX methods to return null instead of throwing an error when there is no content
This commit is contained in:
@@ -504,6 +504,9 @@ namespace Newtonsoft.Json
|
||||
case JsonToken.Bytes:
|
||||
// these have no equivalent in JSON schema
|
||||
break;
|
||||
case JsonToken.None:
|
||||
// no content, do nothing
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user