[C#] 纯文本查看 复制代码
{"knowList":[{
"knowID": 325,
"knowTitle": "一致关系",
"knowList": [
{
"knowID": 326,
"knowTitle": "主语和谓语的一致",
"knowList": []
},
{
"knowID": 327,
"knowTitle": "名词和代词的一致",
"knowList": []
},
{
"knowID": 328,
"knowTitle": "分词逻辑主语的一致",
"knowList": []
},
{
"knowID": 329,
"knowTitle": "并列(平行)结构中成分的一致",
"knowList": [
{
"knowID": 332,
"knowTitle": "为使句子前后保持平衡和协调,句中的并列成分应在结构上保持一致",
"knowList": []
},
{
"knowID": 333,
"knowTitle": "在比较结构中,被比较的事物应是同等成分",
"knowList": []
}
]
},
{
"knowID": 330,
"knowTitle": "倒装结构中主谓语的一致",
"knowList": []
},
{
"knowID": 331,
"knowTitle": "there be 句型中的主谓一致",
"knowList": []
}
]
},{
"knowID": 325,
"knowTitle": "一致关系",
"knowList": [
{
"knowID": 326,
"knowTitle": "主语和谓语的一致",
"knowList": []
},
{
"knowID": 327,
"knowTitle": "名词和代词的一致",
"knowList": []
},
{
"knowID": 328,
"knowTitle": "分词逻辑主语的一致",
"knowList": []
},
{
"knowID": 329,
"knowTitle": "并列(平行)结构中成分的一致",
"knowList": [
{
"knowID": 332,
"knowTitle": "为使句子前后保持平衡和协调,句中的并列成分应在结构上保持一致",
"knowList": []
},
{
"knowID": 333,
"knowTitle": "在比较结构中,被比较的事物应是同等成分",
"knowList": []
}
]
},
{
"knowID": 330,
"knowTitle": "倒装结构中主谓语的一致",
"knowList": []
},
{
"knowID": 331,
"knowTitle": "there be 句型中的主谓一致",
"knowList": []
}
]
},{
"knowID": 325,
"knowTitle": "一致关系",
"knowList": [
{
"knowID": 326,
"knowTitle": "主语和谓语的一致",
"knowList": []
},
{
"knowID": 327,
"knowTitle": "名词和代词的一致",
"knowList": []
},
{
"knowID": 328,
"knowTitle": "分词逻辑主语的一致",
"knowList": []
},
{
"knowID": 329,
"knowTitle": "并列(平行)结构中成分的一致",
"knowList": [
{
"knowID": 332,
"knowTitle": "为使句子前后保持平衡和协调,句中的并列成分应在结构上保持一致",
"knowList": []
},
{
"knowID": 333,
"knowTitle": "在比较结构中,被比较的事物应是同等成分",
"knowList": []
}
]
},
{
"knowID": 330,
"knowTitle": "倒装结构中主谓语的一致",
"knowList": []
},
{
"knowID": 331,
"knowTitle": "there be 句型中的主谓一致",
"knowList": []
}
]
}]
}
public class JobInfo4
{
public Int32 knowID { get; set; }
public string knowTitle { get; set; }
public string knowList { get; set; }
}
List<JobInfo4> jobInfoList2 = JsonConvert.DeserializeObject<List<JobInfo4>>(knowlist);这句老是报错
转成
knowList 这句的问题