Answers for "cannot deserialize the current json array c#"

0

Cannot deserialize the current JSON array (e.g. [1,2,3]) into type

var objResponse1 = 
    JsonConvert.DeserializeObject<List<RetrieveMultipleResponse>>(JsonStr);
Posted by: Guest on June-06-2020
0

Cannot deserialize the current JSON object (e.g. {“name”:“value”})

using Newtonsoft.Json.Linq;

JObject obj = JObject.Parse(jsonString);
JArray arr = (JArray)obj["logInResult"];
IList<JClass> student= arr.ToObject<IList<JClass>>();

return View(student);
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language