我想製作腳本來共享GameServers統計信息。我正在使用JSON方法。我怎樣才能讀取主機名?Json解碼和閱讀
JSON
[
[
{
"ip": "176.57.188.22",
"port": "27022",
"rank": "1",
"online": "1",
"hostname": "..:: LS Public Server ::.. #1",
"num_players": "12",
"max_players": "32",
"location": "AL",
"mapa": "de_dust2"
}
],
true
]
或連結測試LIVE HERE
我笏以只讀的主機名。我嘗試了很多方法,但他們不適合我。