JsonParser: Ignore errors while trying to convert to types.
This commit is contained in:
@@ -115,7 +115,12 @@ namespace VAR.Json
|
|||||||
}
|
}
|
||||||
if (bestMatch != null)
|
if (bestMatch != null)
|
||||||
{
|
{
|
||||||
return ConvertToType(obj, bestMatch);
|
try
|
||||||
|
{
|
||||||
|
object newObj = ConvertToType(obj, bestMatch);
|
||||||
|
return newObj;
|
||||||
|
}
|
||||||
|
catch (Exception) { } /* Nom Nom */
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user