Guest User

Untitled

a guest
Dec 15th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. namespace xmltv
  2. {
  3. public class Event
  4. {
  5. public string id { get; set; }
  6. public string eid { get; set; }
  7. public string start { get; set; }
  8. public string finish { get; set; }
  9. public string title { get; set; }
  10. public string description { get; set; }
  11. public string img { get; set; }
  12. public string age { get; set; }
  13. }
  14.  
  15. public class Result
  16. {
  17. public string name { get; set; }
  18. public string id { get; set; }
  19. public string logo { get; set; }
  20. public string description { get; set; }
  21. public List<Event> events { get; set; }
  22. }
  23.  
  24. public class RootObject
  25. {
  26. public List<Result> result { get; set; }
  27. }
  28. }
  29.  
  30. var json = System.IO.File.ReadAllText("axi.json");
  31. JavaScriptSerializer jsonSerializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue, RecursionLimit = 100 };
  32. var rez = jsonSerializer.Deserialize<List<RootObject>>(json);
  33.  
  34. List<RootObject>
  35. List<Result>
Add Comment
Please, Sign In to add comment