Hi,
For some reason this seems easy but yet for another reason i just cant get it to work, so i have sent an HTTP request that returns me this in JSON format:
{
"id":"100359",
"name":"[ZA] Dimensional.Net | The Experience",
"address":"localhost",
"port":"93847",
"private":"0",
"password":"0",
"query_port":27016, "location":"South Africa",
"hostname":"[ZA#2] Dimensional.Net |PVP|KITS|TPA|HOME|VAULT", "map":"Germany", "is_online":"1",
"players":"6",
"maxplayers":"24",
"version":"3.20.3.0",
"platform":"linux",
"uptime":"100",
"score":"5",
"rank":"561",
"votes":"1",
"favorited":"0",
"comments":"1",
"url":"https://unturned-servers.net/server/100359/",
"last_check":"August 21st, 2017 04:35 PM EST",
"last_online":"August 21st, 2017 04:35 PM EST"
}
I want to use the “Players” value which in this case is “6” to display it in a label as a statistic to show the users.
Please can someone help me solve this i believe it is quite simple, i might just be missing something.
Thanks!
- Dian