title: Asynchonously deserializing a list using System.Text.Json
body: <p>Lets say that I request a large json file that contains a list of many objects. I don't want them to be in memory all at once, but I would rather read and process them one by one. So I need to turn an async <code>System.IO.Stream</code> stream into an <code>IAsyncEnumerable&lt;T&gt;</code>. How do I use the new <code>System.Text.Json</code> API to do this?</p>
  
  <pre><code>private async IAsyncEnumerable&lt;T&gt; GetList&lt;T&gt;(Uri url, CancellationToken cancellationToken = default)
  {
      using (var httpResponse = await httpClient.GetAsync(url, cancellationToken))
      {
          using (var stream = await httpResponse.Content.ReadAsStreamAsync())
          {
              // Probably do something with JsonSerializer.DeserializeAsync here without serializing the entire thing in one go
          }
      }
  }
  </code></pre>