title: F# - Http request response body to string to use with json type provider
body: <p>I get a response from a web api which simply returns an F# record of the data corresponding to the id in the request url.</p>
  
  <p>The question I have is how do I get the text representation of the response.Body so I can plug it into the commented out line below and use it with json type provider. Or is there a different way of doing this that I am missing,</p>
  
  <pre><code>let response = Http.Request("http://localhost:50442/api/getrates/" + input)
  
          let sample = Json.Sample.Parse(""" {"CurrencyId":1,"CurrencyCode":"AUD","Value":0.98542} """)
          //let sample = Json.Sample.Parse("\"\"\" " + response.Body.ToString() + " \"\"\"")
  
          let data = sample.Value
  
          return "Rate for: " + input + " = " + data.ToString()
  </code></pre>