Page 1 of 1

JSON output for RingGamesPlaying and TournamentsPlaying

Posted: Tue Jul 29, 2014 5:42 pm
by Raventhon
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.

Re: JSON output for RingGamesPlaying and TournamentsPlaying

Posted: Tue Jul 29, 2014 5:47 pm
by Kent Briggs
Thanks, I'll take a look at it.

Re: JSON output for RingGamesPlaying and TournamentsPlaying

Posted: Tue Aug 05, 2014 5:08 pm
by Kent Briggs
Now fixed in 4.26