您的课程应类似于:
public class Type{ public int id { get; set; } public string name { get; set; } public bool closedQuestion { get; set; } public bool multiAnswer {get; set;} public bool usesImage {get; set; }}public class RootObject{ public int id { get; set; } public string name { get; set; } public Type type { get; set; } public List<string> options { get; set; }}然后,您应该可以使用Newtonsoft.Json反序列化json:
List<RootObject> myData = JsonConvert.DeserializeObject<List<RootObject>>(json);



