JSON output for RingGamesPlaying and TournamentsPlaying is non-coforming in certain cases and breaks most parsers.
When using the RingGamesPlaying and TournamentsPlaying API commands to retrieve the data for currently playing players, some cases can cause non-conforming JSON to be returned. In the case of RingGamesPlaying, when ClientNetChips is "No", the resulting JSON output for that data is '"Net":[,,,,,]' which is invalid, and should be something like '"Net":[0,0,0,0,0]' or some other placeholder to indicate a null or not-applicable value.
When using the TournamentsPlaying command, a similar thing occurs once players are out the tournament, the table JSON output is '"Table":[1,1,1,,]' and should probably be '"Tables":[1,1,1,0,0]' or some other placeholder to indicate someone is knocked out and no longer at a table.
JSON output for RingGamesPlaying and TournamentsPlaying
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: JSON output for RingGamesPlaying and TournamentsPlaying
Thanks, I'll take a look at it.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: JSON output for RingGamesPlaying and TournamentsPlaying
Now fixed in 4.26