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?

    1 answer 1

    This is the answer in the form of JSON text, it needs to be decrypted, for further work, here are some methods - https://msdn.microsoft.com/ru-ru/library/system.web.helpers.json(v=vs.111). aspx