Skip to content

Commit 3586cf8

Browse files
committed
Added support for JsonArray deserialization
1 parent cbe1480 commit 3586cf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RestSharp/Deserializers/JsonDeserializer.cs

+5
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ private object ConvertValue(Type type, object value)
254254
return CreateAndMap(type, value);
255255
}
256256
}
257+
else if (type.IsSubclassOfRawGeneric(typeof(List<>)))
258+
{
259+
// handles classes that derive from List<T>
260+
return BuildList(type, value);
261+
}
257262
else
258263
{
259264
// nested property classes

0 commit comments

Comments
 (0)