vb.net - How do I parse JSON children using JSON.NET? -
i’m trying results in textures: […]
in json obtained http://t0.rbxcdn.com/ca063a6bab4e145de481384a8a62d64f , display in listbox.
i have code:
public class returnobject public property url string public property textures string public property obj string public property mtl string public property final boolean end class
dim input2 string = obj.text dim json2 returnobject = jsonconvert.deserializeobject(of returnobject)(input2) obj.text = httpget("http://www.roblox.com/thumbnail/resolve-hash/" + json2.obj) mtl.text = httpget("http://www.roblox.com/thumbnail/resolve-hash/" + json2.mtl)
but error
error reading string. unexpected token: startarray. path 'textures', line 1, position 313.
textures
array in json, containing 1 string (mind brackets*):
"textures":["bff5714f0b959385663b1fe030b87064"]
you can reflect in class structure (mind brackets**):
public class returnobject public property url string public property textures string() public property obj string public property mtl string public property final boolean end class
* they’re square brackets
** they’re parentheses
Comments
Post a Comment