因此,我正在尝试使用 DataContractJsonSerializer 将 Facebook Graph API 返回的用户喜欢的 json 解码为对象。我现在尝试创建几个不同的 [DataContract] 类,但没有运气。
为该数据创建 [DataContract] 类的正确方法是什么。
{
"data": [
{
"name": "Earlyups",
"category": "Recreation/sports",
"id": "170410902986097",
"created_time": "2012-04-09T03:34:11+0000"
},
{
"name": "pictureline inc.",
"category": "Local business",
"id": "28861182380",
"created_time": "2012-03-28T02:02:24+0000"
},
{
"name": "Jackson Hole Mountain Resort",
"category": "Sports/recreation/activities",
"id": "24718308041",
"created_time": "2012-03-20T16:10:45+0000"
}
],
"paging": {
"next": "next_page_request_url"
}
}