title: How do I camel case a specific property using Json.NET?
body: <p>I want to camel case specific properties of an object using Json.NET rather than all of the properties.</p>
  
  <p>I have an object like this:</p>
  
  <pre><code>class A {
      public object B { get; set; }
      public object C { get; set; } // this property should be camel cased
  }
  </code></pre>
  
  <p>I want it to get serialized to this:</p>
  
  <pre><code>{ B: 1, c: 2 }
  </code></pre>
  
  <p>I came across <a href="https://stackoverflow.com/questions/21783137/default-camel-case-of-property-names-in-json-serialization">this post</a> about camel casing <em>all</em> properties unconditionally, which is done using:</p>
  
  <pre><code>var settings = new JsonSerializerSettings
  {
      ContractResolver = new CamelCasePropertyNamesContractResolver()
  };
  
  var json = JsonConvert.SerializeObject(a, settings);
  </code></pre>
  
  <p>But I couldn't find a counter-part question for camel casing a specific property. How is this done?</p>