【发布时间】:2014-03-10 08:39:03
【问题描述】:
我使用 newtonsoft.Net 库来反序列化/序列化对象。
我可以将以下 json 反序列化为“OfferPixel”数组吗?
所有数组都有每个服务项目的索引号。所以“Offerpixel”对象似乎是索引号的子项。
{
"data": {
"1": {
"OfferPixel": {
"id": "1",
"affiliate_id": "1009",
"offer_id": "7",
"status": "deleted",
"code": "",
"type": "url",
"modified": "2012-02-16 10:07:33",
"goal_id": null
}
},
"2": {
"OfferPixel": {
"id": "2",
"affiliate_id": "1011",
"offer_id": "7",
"status": "deleted",
"code": "",
"type": "code",
"modified": "2013-08-16 07:27:20",
"goal_id": null
}
},
"3": {
"OfferPixel": {
"id": "3",
"affiliate_id": "1010",
"offer_id": "7",
"status": "deleted",
"code": "",
"type": "image",
"modified": "2013-01-31 12:01:57",
"goal_id": null
}
},
"errors": [],
"errorMessage": null
}
}
【问题讨论】:
标签: c# arrays json serialization