我需要从 json 中的子数组中获取数据,但它没有被转换为列表,下面是我的 json 字符串
{"responseCode":"0","responseObject":{"TotalRecords":25,"TotalDisplayRecords":25,"aaData":[{"InvoiceId":16573,"somedata..},"appCrmAccount(一些标题,总共 100 个这样的标题) amount":40086.00,"invoiceNumber":"12,accountName":"dfgAsfsadf","dueDateStr":"04/24/2012"(待进入列表的数据)
这是我的代码:
var djson = new DataContractJsonSerializer(typeof(dataList));
var stream = new MemoryStream(Encoding.UTF8.GetBytes(json));
dataList result = (dataList)djson.ReadObject(stream);//not getting execute
请帮助..在此先感谢。