Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Button4_Click_1(object sender, EventArgs e)
- {
- using (WebClient webClient = new System.Net.WebClient())
- {
- WebClient n = new WebClient();
- var json = n.DownloadString("http://185.126.178.46:30120/players.json");
- string valueOriginal = Convert.ToString(json);
- JArray jsonResponse = JArray.Parse(json);
- JObject jObj = (JObject)JsonConvert.DeserializeObject(json);
- int count = jObj.Count;
- string sayi = count.ToString();
- MessageBox.Show(sayi);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement