I have a JSON response that I\'m trying to deserialize with RestSharp, and it looks like this:
{\"devices\":[{\"device\":{\"id\":7,\"deviceid\":\"abc123\",\"
My problem was entirely different, I naively thought JsonDeserializer
supports JsonProperty
attribute, but thats not true. So when trying to deserialize into
public class AvailableUserDatasApi
{
[JsonProperty("available-user-data")]
public List AvailableUserDatas { get; set; }
}
it failed.. But changing AvailableUserDatas
to AvailableUserData
was enough for things to start working.