JsonParser: Ignore errors while trying to convert to types.

This commit is contained in:
2020-09-06 03:45:31 +02:00
parent 00664880fb
commit 9d4c2c170d

View File

@@ -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;
} }