title: JsonSerializerSettings and Asp.Net Core
body: <p>Trying to set JsonOutputFormatter options:</p>
  
  <pre><code>var jsonFormatter = (JsonOutputFormatter) options.OutputFormatters.FirstOrDefault(f =&gt; f is JsonOutputFormatter);
  if (jsonFormatter != null)
  {
      jsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mvcBuilder.AddJsonOptions(jsonOptions =&gt;
      {
          jsonOptions.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
      });
  </code></pre>
  
  <p>But as soon as I add this, I get:</p>
  
  <blockquote>
    <p>MissingMethodException: Method not found: &#x27;Newtonsoft.Json.JsonSerializerSettings Microsoft.AspNet.Mvc.Formatters.JsonOutputFormatter.get_SerializerSettings()&#x27;.</p>
  </blockquote>
  
  <p>I'm using the standard <code>Microsoft.AspNet.Mvc.Formatters.Json (6.0.0-rc1-final)</code></p>
  
  <p><strong>Edit:</strong> Solved it by installing <code>Newtonsoft.Json 6.0.6</code> (which downgrades all other references) </p>
  
  <p>Anyone got that already?
  Thanks..</p>