Hi
I am getting abobe error on response0.content.

Thanks
Hi
I am getting abobe error on response0.content.

Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aravind GovindarajRank #430 · 5.8K reputationPosted Dec 22, 2022, 5:21 AM EST
Can you check the class you're defined, it supposes to be like below
Class Response
{
bool status
List data // check here what you assigned, I feel you set it here as string, please change it to list with respective class object
}
class datum {
int id
string name
}
Vishal YelveRank #178 · 13.6K reputationPosted Dec 22, 2022, 5:52 AM EST
Hi Ramco,
You need to create class
public class ResponseData { public int Id { get; set; } public string Name { get; set; } } public class Response { public bool Status { get; set; } public List Responselist { get; set; } }now then
var resultSet = JsonConvert.DeserializeObject(response.Content); return resultSet;