【发布时间】:2015-11-05 00:24:37
【问题描述】:
正在调用返回下面提到的 json 的 api。
{
"salarySlipItems" : {
"\"0\"" : {
"value" : "11000.00",
"description" : "Worth Salary",
"sort" : "1"
},
"\"2\"" : {
"value" : "500.00",
"description" : "Other Income",
"sort" : "3"
},
"\"3\"" : {
"value" : "1354.84",
"description" : "General Allowance",
"sort" : "4"
},
"\"4\"" : {
"value" : "500.00",
"description" : "Telephone Allowance",
"sort" : "5"
},
"\"7\"" : {
"value" : "-2000.00",
"description" : "Other Deductions",
"sort" : "8"
}
},
"decimalDigits" : "2",
"status" : "1"
}
任何人都可以指导我如何在 c# asp.net 中解析它?我相信 salarySlipItems 是一个具有所有属性的对象。什么是\"0\ \"2\等等..?
【问题讨论】:
-
可以参考this question