When i am trying to Deserialized Response data i am getting the error
"Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'CModellassType' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly."
string responseData = responseCategory.Content.ReadAsStringAsync().Result;
UploadApiResponse UploadApiResponseModel = JsonConvert.DeserializeObject<UploadApiResponse>(responseData);
public class UploadApiResponse
{
public int StatusCode { get; set; }
public string Message { get; set; }
public bool IsError { get; set; }
public Data Data { get; set; }
}
public class Data
{
public string AccessToken { get; set; }
}
{
"StatusCode":1,
"Message":"Invalid Parameter.",
"IsError":true,
"Data":[
"CurrencyCode is empty or (greater then 3 or less then 3)"
]
}