title: convert task<string> to string
body: <p>I want to parse from a JSON file in a universal windows phone application but I can't convert task to string </p>
  
  <pre><code>public MainPage()
      {
          this.InitializeComponent();
  
          HttpClient httpClient = new HttpClient();
          String responseLine;
          JObject o;
          try
          {
              string responseBodyAsText;
  
              HttpResponseMessage response = httpClient.GetAsync("http://localhost/list.php").Result;
  
              //response = await client.PostAsync(url, new FormUrlEncodedContent(values));
              response.EnsureSuccessStatusCode();
              responseBodyAsText = response.Content.ReadAsStringAsync().Result;
             // responseLine = responseBodyAsText;
                string Website = "http://localhost/list.php";
              Task&lt;string&gt; datatask =  httpClient.GetStringAsync(new Uri(string.Format(Website, DateTime.UtcNow.Ticks)));
              string data = await datatask;
              o = JObject.Parse(data);
              Debug.WriteLine("firstname:" + o["id"][0]);
          }
          catch (HttpRequestException hre)
          {
          }
  </code></pre>
  
  <p>I have error in this line </p>
  
  <pre><code> string data = await datatask;
  </code></pre>
  
  <p>how can I fix it?</p>