title: JsonSerializer Deserialize byte array
body: <p>When deserialising byte array using <strong>Newtonsoft</strong> we can achieve by writing the following code</p>
  <pre><code> var stringValue = Encoding.UTF8.GetString(byteArray);
   T data = JsonConvert.DeserializeObject&lt;T&gt;(stringValue);
  </code></pre>
  <p>But how do you do the equivalent <strong>using System.Text.Json</strong>? knowing that it is encoding UTF8?</p>