|
|
I am trying to get the value of the following fields:
{"id": "tag:search.twitter.com,2005:186171971162226688"}
{"body": "acordei (:"}
{"verb": "post"}
{"link": "http://twitter.com/rohanaf_/statuses/186171971162226688"}
{"generator": {
"link": "http://twitter.com",
"displayName": "web"
}}
{"postedTime": "2012-03-31T19:23:51.000Z"}
{"provider": {
"link": "http://www.twitter.com",
"displayName": "Twitter",
"objectType": "service"
}}
{"object": {
"summary": "acordei (:",
"id": "object:search.twitter.com,2005:186171971162226688",
"link": "http://twitter.com/rohanaf_/statuses/186171971162226688",
"postedTime": "2012-03-31T19:23:51.000Z",
"objectType": "note"
}}
{"actor": {
"summary": "- namorada da @srtameiga fim. ♥",
"twitterTimeZone": "Brasilia",
"friendsCount": 197,
"location": {
"displayName": "Porto Alegre ",
"objectType": "place"
},
"link": "http://www.twitter.com/rohanaf_",
"postedTime": "2010-03-31T20:12:49.000Z",
"image": "http://a0.twimg.com/profile_images/1987490808/Foto1436_normal.jpg",
"links": [
{
"rel": "me",
"href": null
}
],
"listedCount": 3,
"id": "id:twitter.com:128327683",
"languages": [
"pt"
],
"utcOffset": "-10800",
"followersCount": 347,
"preferredUsername": "rohanaf_",
"displayName": ", feia ;$",
"statusesCount": 48412,
"objectType": "person"
}}
{"twitter_entities": {
"urls": [],
"hashtags": [],
"user_mentions": []
}}
{"objectType": "activity"}
{"source": {
"language": {
"value": "fr"
},
"matching_rules": [
{
"value": "lang:fr",
"tag": null
}
],
"klout_score": 46
}}
I tried the following options and works mostly but missing a couple of fields:
Dim results as List(Of JToken) = jobj.Children().ToList
For each item as JProperty In results
item.CreateReader()
If item.name ="id" then
statid = item.value
End If
...
...
If item.name="source" then
Dim gList as IList(Of JToken)= item("matching_rules").Children.ToList
End If
Next
this works for all the main fields but for the field ("source")("matching_rules")("value"); I keep getting the error cannot access Cannot access child value on Newtonsoft.Json.Linq.JProperty
Please. Desperate position here.
|
|