C#Json字符串转字典

  • 时间:
  • 浏览:0
  • 来源:大发彩神UU快三_大发神彩UU快三官方

Json字符串

{

“StatusCode”: 3000,

“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);