title: Json request on asp.net core 3.1
body: <p>I trie to pass my item Reach_DeclarationBc </p>
  
  <pre><code>    public class Reach_DeclarationBc
      {
          public int ArticleId { get; set; }
          public DateTime DateDeclaration { get; set; }
      }
  
  </code></pre>
  
  <p>I use this code for call my api </p>
  
  <pre><code>var client = new HttpClient();
  
  client.BaseAddress = new Uri("http://localhost:3001/");
  Reach_DeclarationBc reach_DeclarationBc = new Reach_DeclarationBc
  {
      ArticleId = 129,
      DateDeclaration = DateTime.Now
  };
  
  Reach_DeclarationBc result = await client.PostJsonAsync&lt;Reach_DeclarationBc&gt;("http://localhost:3009/reach", reach_DeclarationBc);
  </code></pre>
  
  <p>But a this line this give me an error </p>
  
  <pre><code>Reach_DeclarationBc result = await client.PostJsonAsync&lt;Reach_DeclarationBc&gt;("http://localhost:3009/reach", reach_DeclarationBc);
  </code></pre>
  
  <p>The error is : "TypeLoadException: Could not load type 'Microsoft.JSInterop.Json' from assembly 'Microsoft.JSInterop, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."</p>
  
  <p>The using in my class is </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Diagnostics;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using Microsoft.Extensions.Logging;
  using Projet_Airbus.Data;
  using Projet_Airbus.Models;
  using Projet_Airbus.Models.Declaration;
  using Microsoft.AspNetCore.Blazor;  
  using System.Net.Http;  
  </code></pre>
  
  <p>For solve i tri to use asp.net core 3.1 but this not work </p>