title: Change System.Text.Json Serialization Options of a single ASP.NET Core API controller or single Action in ASP.NET Core 3
body: <p>I'm having two controller controllers: ControllerA and ControllerB. The base class of each controller is ControllerBase.</p>
  
  <p>The ControllerA needs to deserialize JSON in the default option </p>
  
  <pre><code>JsonSerializerOptions.IgnoreNullValues = false;
  </code></pre>
  
  <p>The ControllerB needs to deserialize JSON with option </p>
  
  <pre><code>JsonSerializerOptions.IgnoreNullValues = true;
  </code></pre>
  
  <p>I know how to set this option global in Startup.cs</p>
  
  <pre><code>services.AddControllers().AddJsonOptions( options =&gt; options.JsonSerializerOptions.IgnoreNullValues = true);
  </code></pre>
  
  <p>But how to set specific deserialize options to Controller or Action? (ASP.NET Core 3 API)</p>