-Fixed using MetadataTypeAttribute with proxies
-Fixed error when deserializing undeserializable collections
This commit is contained in:
@@ -814,6 +814,13 @@ namespace Newtonsoft.Json.Serialization
|
||||
}
|
||||
else
|
||||
{
|
||||
// can't populate something like an IEnumerable
|
||||
if (!arrayContract.CanDeserialize)
|
||||
{
|
||||
reader.Skip();
|
||||
return existingValue;
|
||||
}
|
||||
|
||||
value = PopulateList((arrayContract.ShouldCreateWrapper) ? arrayContract.CreateWrapper(existingValue) : (IList)existingValue, reader, arrayContract, member, id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user