title: .NET Core 2.1 JSon.NET Formatters
body: <p>I have an issue where in a class using automatic attributes Json.Net adds k__BackingField to attribute names.</p>
  
  <p>I looked at various recommendation (ie adding [JsonObject]) and none of them works for me.</p>
  
  <p>I found one recommended solution is to do:</p>
  
  <pre><code>((Newtonsoft.Json.Serialization.DefaultContractResolver)config.Formatters.JsonFormatter.SerializerSettings.ContractResolver).IgnoreSerializableAttribute = true;
  </code></pre>
  
  <p>(<a href="https://stackoverflow.com/a/36910449/460084">https://stackoverflow.com/a/36910449/460084</a>)</p>
  
  <p>However I don't know where or how to do this in .NET Core 2.1 ? does this goes in Startup.cs ? how ?</p>
  
  <p>Also I am not even sure that will help, as my class does not have [Serializable] to begin with.</p>
  
  <p>Any help ? Is there really no simple way to change the default for Json.Net to use attribute names as is without the k__BackingField in .NET Core 2.1</p>