Hello,
You can use the .Net classes that come with the framework “System.Web.Script.Serialization” that are a pain on the ass to understand. But if you do you can go with it… Should be something like:
Dim serializer As New JavaScriptSerializer()
Dim deserializedResult = serializer.DeserializeObject(“JSON string”)
‘deserialize… parse… etc…
Or you can simplify your life by using the free library “Json.NET”, and create the classes by using the “jsontodatacontract” tool. Then just with “one” line of code you have a nice easily readable variable:
Dim deserializedResult as YourClassName = Newtonsoft.Json.JsonConvert.DeserializeObject(Of TwitterSearchResult)(“JSON string”)
Sources:
http://blogs.msdn.com/b/carlosfigueira/archive/2011/01/11/inferring-schemas-for-json.aspx
http://stackoverflow.com/questions/17956746/vb-net-deserialize-json-with-json-net
http://james.newtonking.com/json
http://jsontodatacontract.azurewebsites.net/
Regards,
AC