There is a class
namespace xmltv { public class Event { public string id { get; set; } public string eid { get; set; } public string start { get; set; } public string finish { get; set; } public string title { get; set; } public string description { get; set; } public string img { get; set; } public string age { get; set; } } public class Result { public string name { get; set; } public string id { get; set; } public string logo { get; set; } public string description { get; set; } public List<Event> events { get; set; } } public class RootObject { public List<Result> result { get; set; } } } I want to convert json to class
var json = System.IO.File.ReadAllText("axi.json"); JavaScriptSerializer jsonSerializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue, RecursionLimit = 100 }; var rez = jsonSerializer.Deserialize<List<RootObject>>(json); As I understand the error in the deserialization parameter. I tried
List<RootObject> List<Result> 


var myObject = JsonConvert.DeserializeObject<RootObject>(json);- tym32167jsonSerializer.Deserialize<RootObject>(json);- Dmitry PolyaninJsonConvert.DeserializeObject<RootObject>(str)- tym32167