I send a request for a site API of this type:
var httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebRequest.Headers.Add("Accept-Encoding: gzip"); using (var httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse()) { using (var stream = httpWebResponse.GetResponseStream()) { using (GZipStream gzipStream = new GZipStream(stream, CompressionMode.Decompress)) { using (var reader = new StreamReader(gzipStream, Encoding.GetEncoding("UTF-8"))) { return reader.ReadToEnd(); } } } } The answer should come like this:
"date": { "UTC": "2016-02-01 11:00:00", "unix": 1454324400, "local": "2016-02-01 14:00:00", "time_zone_offset": 180 } How to deduct it?