skip to Main Content

JSON.NET – Deserialize not working correctly

I want to deserialize a response from RestResponse in C# (MAUI). request.AddBody(body); RestResponse response = await client.PostAsync(request); if (response.IsSuccessful) { var list1 = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(response.Content); } Here, inside the if block the response I want in a list of objects but…

VIEW QUESTION
Back To Top
Search