using System.Collections.Generic;
using System.Text.RegularExpressions;
static string jsonUrl = "http://paste.ubuntu.com/15551497/";
public static void Main() {
using (var client = new WebClient()) {
var html = client.DownloadString(jsonUrl);
json = Regex.Match(html, "<div class=\"paste\"><pre>(?<value>.*?)</pre></div>", RegexOptions.Singleline).Groups["value"].Value;
json = WebUtility.HtmlDecode(json);
var response = JsonConvert.DeserializeObject<Response>(json);
foreach(var kv in response.Online) {
Console.WriteLine("{0}: {{ Name: {1}, Age: {2} }}", kv.Key, kv.Value.Name, kv.Value.Age);
public string Customer_Status { get; set; }
public double Customer_Cursor { get; set; }
public string Id { get; set; }
public string Site_id { get; set; }
public string Name { get; set; }
public int Is_Online { get; set; }
public string Camera_Online { get; set; }
public int Age { get; set; }
public string Country { get; set; }
public string Write_Message_Url { get; set; }
public string Detail_Url { get; set; }
public int Is_New_Profile { get; set; }
public string Site_Title { get; set; }
public int Can_Be_Watched { get; set; }
public string Photo_Src { get; set; }
public string Photo2_Src { get; set; }
public string Page { get; set; }
public int Pages { get; set; }
public string Page_Var { get; set; }
public string Result { get; set; }
public Dictionary<int, Person> Online { get; set; }
public Pager Pager { get; set; }