public void GetWthBy_CtName_StateCode(string strUrl) { //string strUrl = String.Format("http://api.openweathermap.org/data/2.5/weather?q=Ha Noi&appid=2f45ec1571c6451311ed3c4b5937678b"); HttpClientUtils httpClient = new HttpClientUtils(); var httpResponse = httpClient.SendGetRequest(strUrl); //convert response to String string responseBody = new StreamReader(httpResponse.GetResponseStream()).ReadToEnd().Replace("base", "baseAtt"); //convert response from string to Json WeatherResponse response = JsonConvert.DeserializeObject <WeatherResponse>(responseBody); Console.WriteLine(); }