Exemple #1
0
        dynamic BuildJsonDynamic()
        {
            var client   = GetWebClient();
            var response = (HttpWebResponse)client.Response;

            if (response == null || response.StatusCode != HttpStatusCode.OK)
            {
                return(null);
            }
            var encoding = GetEncoding(response.CharacterSet);
            var jsonText = encoding.GetString(_data);

            return(DynamicHelper.FromJson(jsonText));
        }