【已解决】[求助]json解析,下面这种我如何只要第一个? Post By:2020/11/20 11:39:00 [显示全部帖子]
嵌套的对象数组解析。
在命令窗口执行:
Dim json
AsString =
"{'name':'李云龙','card':[{'bank':'工行','account':'123'},{'bank':'建行','account':'678'}]}" Dim jo As
JObject = JObject.Parse(json) Output.Show(jo("name")) ForEach jt As JToken In jo("card") Output.Show(jt("bank").ToString &
"|" &
jt("account").ToString) Next