In one of my apps, I am getting the response from a webrequest. The service is Restful service and will return a result similar to the JSON format below:
{
If you're getting source in Content Use the following method
try
{
var response = restClient.Execute>(restRequest);
var jsonContent = response.Content;
var data = JsonConvert.DeserializeObject>(jsonContent);
foreach (EmpModel item in data)
{
listPassingData?.Add(item);
}
}
catch (Exception ex)
{
Console.WriteLine($"Data get mathod problem {ex} ");
}