vb.net - Decode JSON (String) - visual basic -


how can decode json string in visual basic (without download programs)

private sub viewhinttoolstripmenuitem_click(byval sender system.object, byval e system.eventargs) handles viewhinttoolstripmenuitem.click     dim instance net.webclient = new net.webclient     dim address string = "https://pr2hub.com/files/artifact_hint.txt"     dim returnvalue string     returnvalue = instance.downloadstring(address)     artifact.text = returnvalue     hinttext.show()     hinttext.richtextbox1.text = returnvalue     hinttext.richtextbox2.text = returnvalue end sub 

by decode assuming mean deserialize. have tried system.web.script.serialization.javascriptserializer ?

i don't understand you're trying deserialize above here's generic example:

dim s string = "{ 'name':'fred', 'address':'123 main', 'phone':'333-4444'}" dim jss new javascriptserializer dim o object = jss.deserialize(of object)(s) 

note there jss.serialize method available.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -