Posted on: 3/22/2015 3:04:23 AM | Views : 595

Hi guys..
I wanna check if dict("data")(x)("name") is existed.. pls advise.
Dim graphUrl As String = "https://graph.facebook.com/" + album_id + "/photos?fields=name,images&type=large" Dim JSONtext As String = facebook.GetPageContent(graphUrl) Dim jss = New JavaScriptSerializer() Dim dict As Dictionary(Of String, Object) = jss.Deserialize(Of Dictionary(Of String, Object))(JSONtext) Dim DT As New DataTable DT.Columns.Add("name") For x as integer = 0 to dict.Count - 1 If dict.ContainsKey("name") = True Then // do something Next

Go to the complete details ...