title: How to configure NewtonsoftJson with MinimalApi in .NET 6.0
body: <p>I have <code>net6.0</code> project with minimal api and I would like to use <code>NetwtonsoftJson</code> instead of built in <code>System.Text.Json</code> library for serialization and deserialization.</p>
  <p>At the moment I have this configurations for <code>JsonOptions</code> and that works as expected</p>
  <pre><code>builder.Services.Configure&lt;JsonOptions&gt;(options =&gt;
  {
      options.SerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
      options.SerializerOptions.WriteIndented = true;    
      options.SerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
      options.SerializerOptions.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase));
  });
  </code></pre>
  <p>If I try to change to something equivalent that uses <code>Newtonsoft.Json.JsonSerializerSettings</code> like below I am not getting same behavior. Instead it looks like it uses default <code>System.Text.Json</code> configuration.</p>
  <pre><code>builder.Services.Configure&lt;JsonSerializerSettings&gt;(options =&gt;
  {
      options.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
      options.Converters.Add(
          new StringEnumConverter
          {
              NamingStrategy = new Newtonsoft.Json.Serialization.CamelCaseNamingStrategy()
          });
  });
  </code></pre>
  <p>In <code>net5.0</code> I know I could use this</p>
  <pre><code>services.AddControllers().AddNewtonsoftJson((options) =&gt; //options); // OR
  services.AddMvc().AddNewtonsoftJson((options) =&gt; //options);
  </code></pre>
  <p>However, if I use it like above in my <code>net6.0</code> project then I am not using anymore MinimalApi ?</p>