Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Originally Posted by: ALCVMixAxes this is the web address I'm pulling from: https://api.axescores.co...24-WilsonCup/orange/leftThe data string in the web browser is: {"players":{"left":{"name":"Austin Agosti","roundsWon":3,"roundScore":25.0,"throws":{"1":{"label":"1","value":"5","clutch":false},"2":{"label":"2","value":"5","clutch":false},"3":{"label":"3","value":"5","clutch":false},"4":{"label":"4","value":"5","clutch":false},"5":{"label":"5","value":"5","clutch":false}},"bigAxes":null},"right":{"name":"Adrian Gagnon","roundsWon":0,"roundScore":18.0,"throws":{"1":{"label":"1","value":"5","clutch":false},"2":{"label":"2","value":"5","clutch":false},"3":{"label":"3","value":"3","clutch":false},"4":{"label":"4","value":"5","clutch":false},"5":{"label":"5","value":"0","clutch":true}},"bigAxes":null}}} Exactly as mentioned before, there is no array Json Arrays are enclosed with [ ] see google search for "json array" if you are ok with the fact all this data is in one row try the folowing script Code:Dim thesource As String = New System.Net.WebClient().DownloadString("https://api.axescores.com/stream/2024-WilsonCup/orange/left")
thesource = "[" & thesource & "]"
System.IO.File.WriteAllText("D:/Test.json", text)
and load the Test.json file as your json datasource
|
1 user thanked doggy for this useful post.
|
|