Skip to content

Commit

Permalink
Added support for JsonArray deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ryno1234 committed Nov 18, 2013
1 parent cbe1480 commit 3586cf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RestSharp/Deserializers/JsonDeserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ private object ConvertValue(Type type, object value)
return CreateAndMap(type, value);
}
}
else if (type.IsSubclassOfRawGeneric(typeof(List<>)))
{
// handles classes that derive from List<T>
return BuildList(type, value);
}
else
{
// nested property classes
Expand Down

0 comments on commit 3586cf8

Please sign in to comment.