title: System.Text.Json JsonSerializer: Serialization and deserialization of 'System.Type' instances are not supported
body: <br/>
  I got an error related with security when I tried to deserialize by using `System.Text.Json JsonSerializer`.
  <ul>
  <li><p>What do I want to achieve? <br/>
  I want to give the user controle to transalte some records in my database, so use can follow this scenario:</p>
  <p>1- User can choose model of my class library.<br/>
  2- After selecting a class, user will select a property(filed) from this class.<br/>
  3- User will get list of values of the selected property up. <br/>
  4- Last step is not here right now, user can edit a certian value.</p>
  </li>
  </ul>
  <p>This my piece of code: <br/></p>
  <ul>
  <li><p>MyPage.razor.cs:</p>
  <pre><code>[Inject]
  private  IGenericHttpClient&lt;Type&gt; HttpClient { get; set; }
  private Type SelectedType { get; set; }
  
  // First select a class [Class library] from HTML Select
  private void OnTypeChnage(ChangeEventArgs args)
  {
     string FullName = &quot;My.Models.&quot; + args.Value.ToString();
     // Create type of selected class
     SelectedType = Assemble.GetType(FullName, false);
  }
  //Call api to get all fields of this class
  private async Task OnPropertChange(ChangeEventArgs args)
  {
     var list = await 
    HttpClient.GetJsonAsync($&quot;/api/{SelectedType.Name}/all&quot;);
  }
  </code></pre>
  </li>
  <li><p>GenericHttpClient.cs</p>
  <pre><code>public async ValueTask&lt;List&lt;T&gt;&gt; GetJsonAsync(string url)
    {
        using HttpResponseMessage response = await _client.GetAsync(url);
        ValidateResponse(response);
        var conetnt =  await response.Content.ReadAsStringAsync();
        //I got the error down
        return JsonSerializer.Deserialize&lt;List&lt;T&gt;&gt;(conetnt, new JsonSerializerOptions() { PropertyNameCaseInsensitive=true});
    }
  </code></pre>
  </li>
  </ul>