If it is what it looks like, then that is JSON data, and there exist several libraries that can be used to read such data structures, for example Json.NET.
Dim web As New Net.WebClient Dim text = web.DownloadString("http://www.paltalk.com/people/ws/profile/Jeff?pretty=true") Dim token = Newtonsoft.Json.Linq.JToken.Parse(text) Dim profile = token("Profile") Dim country = "Country: " & profile("country").ToString Dim content = "Content: " & profile("adContent").ToString Dim accdate = "Date: " & profile("dateAccountCreated").ToString Me.TextBox1.Text = String.Join(vbNewLine, {country, content, accdate})
Yes, that is Json data, which as I said can be read with that Json.Net library. You download and extract it, and add reference to \Bin\Net40\Newtonsoft.Json.dll.
Here's an example downloading the data from web, parsing it into JToken object, and getting some properties:
Dim web As New Net.WebClient Dim text = web.DownloadString("http://www.paltalk.com/people/ws/profile/Jeff?pretty=true") Dim token = Newtonsoft.Json.Linq.JToken.Parse(text) Dim profile = token("Profile") Dim country = "Country: " & profile("country").ToString Dim content = "Content: " & profile("adContent").ToString Dim accdate = "Date: " & profile("dateAccountCreated").ToString Me.TextBox1.Text = String.Join(vbNewLine, {country, content, accdate})
but didn't work can you help me with this thanksDim token = Newtonsoft.Json.Linq.JToken.Parse(text)
Dim result = token("result")
Dim name = "Name: " & result("name").ToString
Dim last = "Last name: " & result("last").ToString
Dim gender = "Gender: " & result("gender").ToString
Dim location = "Location: " & result("location").ToString
Me.TextBox1.Text = String.Join(vbNewLine, {name, last, gender, location})
For Each item In listToken Dim s = item("name").ToString() Next
For Each item In token("result")("list")