title: How to setup JsonSerializerSettings for an ASPNET.Core application?
body: <p>ASP.NET Core has the following two extension methods to help setting up some default JSON settings, for your app:</p>
  
  <pre><code>- services..AddJsonOptions(options =&gt; options.SerializerSettings) // SS is a GETTER only.
  - services.AddJsonFormatters(options =&gt; 
    {
        options.NullValueHandling = NullValueHandling.Ignore; // etc.
    }
  </code></pre>
  
  <p>Both ways only allow you to <em>manually</em> specify each property to set.</p>
  
  <p>How can I pass in an instance of a <code>JsonSerializerSettings</code> to use. The idea here is that I don't know what the settings are .. just use this instance which has various settings defined.</p>
  
  <p>e.g.</p>
  
  <pre><code>var myJsonSerializerSettings = SomeHelper.CommonJsonSerializerSettings;
  services.AddJson(myJsonSerializerSettings);
  </code></pre>