I have a JSON response that I\'m trying to deserialize with RestSharp, and it looks like this:
{\"devices\":[{\"device\":{\"id\":7,\"deviceid\":\"abc123\",\"
Something that I ran into is, it does not work if your using interfaces like: IEnumerable or IList, it has to be a concrete type.
This will not work, where as it does for some other json serializers like json.net.
public class DevicesList
{
public IEnumerable Devices { get; set; }
}
public class DeviceContainer
{
...
}
it would have to be something like this:
public class DevicesList
{
public List Devices { get; set; }
}
public class DeviceContainer
{
...
}