logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
bar807  
#1 Posted : Sunday, December 5, 2021 5:23:56 PM(UTC)
bar807

Rank: Member

Groups: Registered
Joined: 11/24/2017(UTC)
Posts: 12

Hi all,

Not sure if I'm doing anything wrong but currently trying to use a web page JSON as a datasource for a live scores and player information in a live Pool tournament: https://api.cuescore.com/tournament/?id=11135416 but I'm only getting 1 line of information from the whole JSON (json1 attachment) Need to get the whole list with player names/image/scores from this.

Then on the other hand I'm able to get all rows for the participant list from another JSON source (json2 attachement) : https://api.cuescore.com...ipants=Participants+list

Not sure if there is anything wrong with the structure of the JSON data from json1, or vMix can't convert the data, or I am missing something.

Tried using excel power query to pull the Json data from Json1 and I was able to retrieve the whole table


json1.PNG (18kb) downloaded 1 time(s). json2.PNG (37kb) downloaded 0 time(s).
Roy Sinclair  
#2 Posted : Thursday, December 16, 2021 10:09:53 AM(UTC)
Roy Sinclair

Rank: Advanced Member

Groups: Registered
Joined: 11/23/2020(UTC)
Posts: 170
United States
Location: Wichita

Thanks: 10 times
Was thanked: 24 time(s) in 20 post(s)
Originally Posted by: bar807 Go to Quoted Post
Hi all,

Not sure if I'm doing anything wrong but currently trying to use a web page JSON as a datasource for a live scores and player information in a live Pool tournament: https://api.cuescore.com/tournament/?id=11135416 but I'm only getting 1 line of information from the whole JSON (json1 attachment) Need to get the whole list with player names/image/scores from this.

Then on the other hand I'm able to get all rows for the participant list from another JSON source (json2 attachement) : https://api.cuescore.com...ipants=Participants+list

Not sure if there is anything wrong with the structure of the JSON data from json1, or vMix can't convert the data, or I am missing something.

Tried using excel power query to pull the Json data from Json1 and I was able to retrieve the whole table


json1.PNG (18kb) downloaded 1 time(s). json2.PNG (37kb) downloaded 0 time(s).


Have you tried using: https://devblogs.microso...w-system-text-json-apis/

doggy  
#3 Posted : Thursday, December 16, 2021 12:32:38 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,216
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Help files:

JSON

This supports JSON data that is stored as an object array.
Each element in the array will be treated as a row.
MartLeib  
#4 Posted : Friday, December 17, 2021 12:00:53 AM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 189
Estonia

Thanks: 1 times
Was thanked: 52 time(s) in 42 post(s)
First JSON will never work straight in vMix, you need to reformat the data to follow the structure where your player object is inside the array as doggy pointed out.

For example:
[
{
"name": "First Player",
"score1": "11",
"score2": "15"

},
{
"name": "Second Player",
"score1": "17",
"score2": "21"

}

]
gt351  
#5 Posted : Friday, May 27, 2022 8:08:38 PM(UTC)
gt351

Rank: Newbie

Groups: Registered
Joined: 1/1/2016(UTC)
Posts: 7
Location: Gold Coast

Yeah, I have been doing this for 5 or 6 years, Pool 8 Ball scoreboard. actually doing the event + json scoreboard this weekend.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.