-Added ReadAsBoolean
-Fixed reading booleans as strings -Fixed reading large integers as booleans
This commit is contained in:
@@ -376,6 +376,10 @@ namespace Newtonsoft.Json.Utilities
|
||||
{
|
||||
return (ulong)i;
|
||||
}
|
||||
if (targetType == typeof(bool))
|
||||
{
|
||||
return i != 0;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user