How to serialize-deserialize object using HTTP GetAsync method?
<p>After I upgraded the framework of web app from 4.0 to 4.6 I found that there is no more <code>ReadAsAsync()</code> method in HTTP protocol library, instead of <code>ReadAsAsync()</code> there is <code>GetAsync()</code>. I need to serialize my custom object using <code>GetAsync()</code>.</p>

<p>The code using ReadAsAsync():</p>

<pre><code>CustomResponse customResponse = client.ReadAsAsync("api/xxx", new StringContent(new JavaScriptSerializer().Serialize(request), Encoding.UTF8, "application/json")).Result; 
</code></pre>

<p>Another example based on ReadAsAsync()</p>

<pre><code>CustomResponse customResponse = await Response.Content.ReadAsAsync&lt;CustomResponse&gt;(); 
</code></pre>

<p>How to achieve same goal using <code>GetAsync()</code> method ?            </p>