程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> json-C# 反序列化嵌套JSON。請問這個JSON C#怎麼來處理

json-C# 反序列化嵌套JSON。請問這個JSON C#怎麼來處理

編輯:編程解疑
C# 反序列化嵌套JSON。請問這個JSON C#怎麼來處理

{"total":1,"success":true,"metaData":{"fields":[{"name":"presno","type":"string"},{"name":"medid","type":"float"},{"name":"medouttime","type":"date","dateFormat":"Y-m-d H:i:s.u"},{"name":"prestype","type":"float"},{"name":"windowno","type":"string"},{"name":"patientid","type":"float"},{"name":"patientname","type":"string"},{"name":"patientsex","type":"string"},{"name":"patientbirth","type":"string"},{"name":"diagnosis","type":"string"},{"name":"wardno","type":"float"},{"name":"wardname","type":"string"},{"name":"doctorname","type":"string"},{"name":"fpno","type":"string"},{"name":"sendflag","type":"string"},{"name":"tfcode","type":"int"},{"name":"medpresinfo","type":"string"}]},"rows":[{"presno":"19840491","medid":40491,"medouttime":"2016-11-29 07:15:48.269085","prestype":1,"windowno":"","patientid":42361,"patientname":"陳詩玉","patientsex":"","patientbirth":"","diagnosis":"","wardno":10153,"wardname":"急診科","doctorname":"周耀亮","fpno":"35654","sendflag":"","tfcode":1,"medpresinfo":"[{\"medid\":40491,\"medonlycode\":2119,\"medamt\":1,\"medpack\":\"\",\"medunitpack\":\"\",\"medunit\":\"0.125g*12s\",\"windowno\":\"\",\"medpredos\":\"0.5\",\"medusage\":\"qd\",\"medpreday\":1,\"medunitprice\":46.3000,\"medtotalprice\":\"\",\"medtype\":\"\",\"medconvercof\":\"\",\"tfcode\":\"\",\"medname\":\"地紅霉素腸溶片(派盛)\",\"medfactory\":\"西安利君制藥\"}]"}],"processedTime":43}

最佳回答:


JSON.NET使用示例

showbo
tjchbs
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved