using System.Collections.Generic;
using Newtonsoft.Json.Serialization;
public static void Main()
""server"": ""1.1.1.1:80"",
""name"": ""1.1.1.1:80"",
""server"": ""127.0.0.1:8888"",
""name"": ""127.0.0.1:8888"",
""server"": ""1.1.1.2:80"",
""name"": ""1.1.1.2:80"",
""server"": ""127.0.0.1:8888"",
""name"": ""127.0.0.1:8888"",
var dict = JsonConvert.DeserializeObject<Dictionary<string, Item>>(json);
foreach (var kvp in dict)
Console.WriteLine($"Zone: {item.zone} keepalive: {item.keepalive}");
public List<Peer> peers { get; set; }
public int keepalive { get; set; }
public int zombies { get; set; }
public string zone { get; set; }
public int id { get; set; }
public string server { get; set; }
public string name { get; set; }
public bool backup { get; set; }
public int weight { get; set; }
public string state { get; set; }
public int active { get; set; }
public int requests { get; set; }
public Responses responses { get; set; }
public int sent { get; set; }
public int received { get; set; }
public int fails { get; set; }
public int unavail { get; set; }
public HealthChecks health_checks { get; set; }
public int downtime { get; set; }
public int code_1xx { get; set; }
public int code_2xx { get; set; }
public int code_3xx { get; set; }
public int code_4xx { get; set; }
public int code_5xx { get; set; }
public int total { get; set; }
public class HealthChecks
public int checks { get; set; }
public int fails { get; set; }
public int unhealthy { get; set; }