using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Collections.Specialized;
using System.Web.Routing;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using System.Web.SessionState;
public class CinemasViewModel
[JsonProperty("cinemas")]
public List<Cinema> Cinemas { get; set; }
public string Id { get; set; }
public string Slug { get; set; }
public string Name { get; set; }
[JsonProperty("chain_id")]
public string ChainId { get; set; }
[JsonProperty("telephone")]
public string Telephone { get; set; }
public string Email { get; set; }
[JsonProperty("website")]
public string Website { get; set; }
[JsonProperty("booking_type")]
public string BookingType { get; set; }
[JsonProperty("location")]
public Location Location { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
[JsonProperty("address")]
public Address Address { get; set; }
[JsonProperty("display_text")]
public string DisplayText { get; set; }
public string Street { get; set; }
public string House { get; set; }
[JsonProperty("zipcode")]
public string ZipCode { get; set; }
public string City { get; set; }
public string State { get; set; }
[JsonProperty("state_abbr")]
public string StateAbbreviation { get; set; }
[JsonProperty("country")]
public string Country { get; set; }
[JsonProperty("country_code")]
public string CountryCode { get; set; }
public static void Main()
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);
var response = GetJson();
var data = JsonConvert.DeserializeObject<CinemasViewModel>(response);
Console.WriteLine("Re-serializd response: ");
var newJson = JsonConvert.SerializeObject(data, Formatting.Indented);
Console.WriteLine(newJson);
""slug"": ""amc-star-fairlane-21-dearborn"",
""name"": ""AMC Star Fairlane 21"",
""telephone"": ""(313) 593-3331"",
""website"": ""https://www.amctheatres.com/movie-theatres/detroit/amc-star-fairlane-21"",
""display_text"": ""18900 Michigan Ave., Dearborn, MI 48126, United States"",
""street"": ""Michigan Ave"",
""country"": ""United States"",
""booking_type"": ""external""
""slug"": ""allen-park-digital-cinema"",
""name"": ""Allen Park Digital Cinema"",
""telephone"": ""(313) 381-1125"",
""website"": ""http://www.allenparkcinemas.com/"",
""display_text"": ""6601 Allen Rd, Allen Park, MI 48101, United States"",
""street"": ""6601 Allen Road"",
""city"": ""Allen Park"",
""country"": ""United States"",