//Edit: This isn't a duplicate the suggested thread isn't helping me anyway, because my question is relating to the Newton.Json// I'm using the Newtonsoft.Json for my historical Weatherapp (univerity project). So I chose to use openweathermap.org. Here my code:
var request = (HttpWebRequest)WebRequest.Create("http://api.openweathermap.org/data/2.5/history/city?q=exampletown&start=1420135249&end=1421085649&type=hour")
var response = await request.GetResponseAsync();
var rawJson = new StreamReader(response.GetResponseStream()).ReadToEnd();
var json = JObject.Parse(rawJson);
string temp_value = json["temp"].ToObject<string>();
I'm always geting an exception: NullReferenceException: Object Reference is not set to an instance of an object. Additional info: json and rawjson is not null, temp_value is. I'm sorry when I asked the question in worng place. I'm new here folks.
PS: the uri is not completly correct, I replaced my town to exampletown