【发布时间】:2015-06-17 15:37:45
【问题描述】:
我还不是很擅长这个,不确定我的主题是否准确地描述了我需要什么。我知道它可能已经回答了,我很难理解答案,因为它们并不直接适用于我的数据。我正在尝试弄清楚如何遍历此 URL 中的数据。
http://tmi.twitch.tv/group/user/twitch/chatters
这是我一直在使用的。
Dim url = "http://tmi.twitch.tv/group/user/" & ConnectionInformation.Channel.TrimStart("#") & "/chatters"
Dim json As String = Nothing
Dim wc As New WebClient()
json = wc.DownloadString(url)
Dim root As JToken = JToken.Parse(json)
For Each item As JToken In root("chatters")
'I've tried several things here and I can't find a good way to iterate through the viewers found here.
Next
我想我无法让观众进入一个集合以便我可以遍历它们,有人可以在这里指出我正确的方向吗?
谢谢。
【问题讨论】:
标签: json vb.net iteration twitch