本文共 1634 字,大约阅读时间需要 5 分钟。
Json字符串
{ “StatusCode”: 200, “Message”: “获取模板成功”, “Data”: { “Data”: { “Page1”: [ { “FROB”: “”, “Fdate”: “”, “FDeptID”: { “FNumber”: “”, “FName”: “” }, “FSelTranType”: “”, “FSelBillNo”: “”, “FDCStockID”: { “FNumber”: “”, “FName”: “” }, “FTranType”: “”, “FBillNo”: “”, “FCheckerID”: { “FNumber”: “”, “FName”: “” }, “FCheckDate”: “”, “FPosterID”: “”, “FFManagerID”: { “FNumber”: “”, “FName”: “” }, “FSManagerID”: { “FNumber”: “”, “FName”: “” }, “FBillerID”: { “FNumber”: “”, “FName”: “” }, “FManageType”: “”, “FVchInterID”: “” } ], “Page2”: [ { “FICMOInterID”: “”, “FEntryID2”: “”, “FItemID”: { “FNumber”: “”, “FName”: “” }, “FItemName”: “”, “FItemModel”: “”, “FAuxPropID”: { “FNumber”: “”, “FName”: “” }, “FBaseUnit”: “”, “FBatchNo”: “”, “FQtyMust”: “”, “FQty”: “”, “FUnitID”: { “FNumber”: “”, “FName”: “” }, “FAuxQtyMust”: “”, “Fauxqty”: “”, “FSecUnitID”: “”, “FSecCoefficient”: “”, “FSecQty”: “”, “FAuxPlanPrice”: “”, “FPlanAmount”: “”, “Fauxprice”: “”, “Famount”: “”, “Fnote”: “”, “FKFDate”: “”, “FKFPeriod”: “”, “FPeriodDate”: “”, “FDCStockID1”: { “FNumber”: “”, “FName”: “” }, “FDCSPID”: { “FNumber”: “”, “FName”: “” }, “FSNListID”: “”, “FIsSNManage”: “”, “FSourceBillNo”: “”, “FSourceTranType”: “”, “FSourceInterId”: “”, “FSourceEntryID”: “”, “FICMOBillNo”: “”, “FPPBomEntryID”: “”, “FChkPassItem”: { “FNumber”: “”, “FName”: “” }, “FAuxPropCls”: “”, “FPlanMode”: { “FNumber”: “”, “FName”: “” }, “FMTONo”: “” } ] } } }1.引用dll库:System.Web.Extensions
2.using System.Web.Script.Serialization; 3. var json = new JavaScriptSerializer() { MaxJsonLength = int.MaxValue }; Object[] dictList = (Object[])json.DeserializeObject(kibMasJson);转载地址:http://nyikl.baihongyu.com/