Advertisement
CayTv

Untitled

Jul 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1.         private void Button4_Click_1(object sender, EventArgs e)
  2.         {
  3.             using (WebClient webClient = new System.Net.WebClient())
  4.             {
  5.                 WebClient n = new WebClient();
  6.                 var json = n.DownloadString("http://185.126.178.46:30120/players.json");
  7.                 string valueOriginal = Convert.ToString(json);
  8.                 JArray jsonResponse = JArray.Parse(json);
  9.                 JObject jObj = (JObject)JsonConvert.DeserializeObject(json);
  10.                 int count = jObj.Count;
  11.                 string sayi = count.ToString();
  12.                 MessageBox.Show(sayi);
  13.             }
  14.            
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement