title: Configure Json.NET serialization settings on a class level
body: <p>I want my class to be serialized and deserialized using camel case naming convention. I know I can use the <code>JsonConvert.SerializeObject(object, settings)</code> overload as stated <a href="https://stackoverflow.com/a/34071328/4207332">here</a>:</p>
  
  <pre><code>var serializerSettings = new JsonSerializerSettings();
  serializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
  var json = JsonConvert.SerializeObject(product, serializerSettings);
  </code></pre>
  
  <p>Is there any way to apply the same configuration on a class level (via attributes) so that I do not need to override the serialization settings? </p>
  
  <p>I could write a <a href="https://stackoverflow.com/questions/7585593/how-do-i-configure-json-net-custom-serialization">custom converter</a> but that looks like an overkill for such a simple thing.</p>