Site
Home / Forum / Developers / Empty Json Objects in Live Scores

Empty Json Objects in Live Scores


Posted: 12 Sep 2020 15:45
TakiEddineGA

Posts: 36
Joined: 2020

I have built my app using your api to fetch premier league data , in the live score section i noticed that there are some objects that are empty when there is no data like yellow card details and red card details but if there is data , they turn into string , i have little suggestion to ease the handling of data , if you could turning those objects into strings and simply when there is no data , make it null or empty to handle the exception or nullity in case , thank you .

this is a sample :

"HomeTeamYellowCardDetails":"85':Haris Radetinac;",
"AwayTeamYellowCardDetails":"53':Rasmus Alm;81':Frederik Holst;90':Leo Vaeisaenen;",
"HomeTeamRedCardDetails":{

},
"AwayTeamRedCardDetails":{

},


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 1 (Total: 1)