title: Argument1: Cannot convert from 'System.IO.Stream' to 'String'
body: <p>I'm stumped on this, and could use some assistance. I've done web searches, and read documentation for the last several hours, and have had no luck.</p>
  
  <p>I'm getting an error that reads as follows from the "response" overload entry of the "JObject o = JObject.Parse(response);" line.</p>
  
  <blockquote>
    <p>Argument1: cannot convert from 'System.IO.Stream' to 'string'</p>
  </blockquote>
  
  <pre><code>static void MyFunction(out string Value1, out string Value2)
  {
      HttpClient client = new HttpClient();
      var response = client.GetStreamAsync("My URI").Result;
      JObject o = JObject.Parse(response);
      Value1 = (string)o.SelectToken("PressureReading");
      Value2 = (string)o.SelectToken("PressureTrend");
  }
  </code></pre>
  
  <p>I had this code working using webclient in a console app project. However, since this is a for UWP project, I'm unable to use webclient (and am required to use HttpClient). Also, the JSON string I'm parsing from my REST API is as follows:</p>
  
  <pre><code>{"ID":8,"Site":"EstevanPointCanada","PressureReading":"30.05     ","PressureTrend":"0         "}
  </code></pre>
  
  <p>What changes do I need to make in order for the above function to compile?</p>
  
  <p>Thanks in advance for any assistance provided.</p>