【发布时间】:2011-06-19 15:00:09
【问题描述】:
我有一个 json 数组,格式如下:
[
{
"property":96,
"listofstuff":[
{
"anotherproperty":"some text here",
"yetanother":"text goes here too"
}
],
"lastproperty":3001
},
<rest of array>
]
我怎样才能反序列化它以使我可以拥有由property 索引的对象列表?意思是,我希望能够访问这样的数据:MyList(96).lastproperty 或 MyList(96).listofstuff.yetanother 并让它也返回正确的数据类型?这在 vb.net 中是否可行?
【问题讨论】:
-
我实际上曾尝试用正则表达式解析它,事后看来这似乎不是最聪明的方法......
标签: vb.net arrays json deserialization