我是一个带有 json 的新手,并试图用煤将 facebook json 读取到 vb.net 以将其保存到数据库中。
{
"id": "1154546722",
"name": "Toni Laket",
"first_name": "Toni",
"last_name": "Laket",
"link": "https://www.facebook.com/tbll",
"username": "arbous",
"birthday": "07/11/1969",
"hometown": {
"id": "1031215454756",
"name": "Harmo, Land"
},
"location": {
"id": "1031215454756",
"name": "Harmo, Land"
},
"work": [
{
"employer": {
"id": "5440547873",
"name": "Sytyty Oy"
},
"location": {
"id": "107234324406",
"name": "Pori"
},
"position": {
"id": "14625323232414",
"name": "Keaxrrjohtaja"
},
"start_date": "1999-01-01"
}
],
"education": [
{
"school": {
"id": "106444432115435",
"name": "ukio"
},
"type": "High School"
}
],
"gender": "male",
"email": "tddd@arpo.com",
"timezone": 3,
"locale": "fi_FI",
"verified": true,
"updated_time": "2013-10-09T05:32:47+0000"
}
所以我试图将所有这些信息获取到数据库表中。我已经设法保存了电子邮件、姓名等基本信息。
地点、家乡和工作呢?我如何获取这些信息?
两天来,我一直在努力寻找简单的解决方案。我很确定有人在我之前用 vb.net (v4.0) 完成了这个 facebook 抓取?
我一直在使用 json.net,但没有设法获得那些嵌套的 json 字段。如何使用 json.net 和 vb.net 获取那些嵌套字段?