-Added ReadAsBoolean

-Fixed reading booleans as strings
-Fixed reading large integers as booleans
This commit is contained in:
James Newton-King
2016-01-05 22:12:01 +13:00
parent 1ada613903
commit 9021858293
11 changed files with 564 additions and 101 deletions
@@ -376,6 +376,10 @@ namespace Newtonsoft.Json.Utilities
{
return (ulong)i;
}
if (targetType == typeof(bool))
{
return i != 0;
}
try
{