Fix support for custom list converters when input is not an array or object
This commit is contained in:
@@ -1056,7 +1056,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
property.ObjectCreationHandling.GetValueOrDefault(Serializer._objectCreationHandling);
|
||||
|
||||
if ((objectCreationHandling != ObjectCreationHandling.Replace)
|
||||
&& (tokenType == JsonToken.StartArray || tokenType == JsonToken.StartObject)
|
||||
&& (tokenType == JsonToken.StartArray || tokenType == JsonToken.StartObject || propertyConverter != null)
|
||||
&& property.Readable)
|
||||
{
|
||||
currentValue = property.ValueProvider.GetValue(target);
|
||||
|
||||
Reference in New Issue
Block a user