Extending the DefaultContractResolver to convert ExpandoObject sub properties to PascalCase
<p>I am trying to write a custom contract resolver that extends DefaultContractResolver in Newtonsoft.Json.Serialization, with the goal of converting all properties within an ExpandoObject to have PascalCase property names. </p>

<p>My contract:</p>

<pre><code>public class Fruit 
{
    public int Id { get; set; }
    public ExpandoObject FruitProperties { get; set; }
}
</code></pre>

<p>I am passing in the following data:</p>

<pre><code>{
  "Id": "1234",
  "FruitProperties" : {
      "colour": "red",
      "Taste": "sweet
   }

  }

}
</code></pre>

<p>The result I am expecting is the following:</p>

<pre><code>{
   "Id": "1234",
   "FruitProperties" : {
      "Colour": "red",
      "Taste": "sweet"
    }
}
</code></pre>

<p>I have tried overriding ResolvePropertyName, and CreateProperty methods in the DefaultContractResolver with no luck. All of these skip the sub properties within the expando object. Does anyone know what method in the DefaultContractResolver I need to override to convert the sub property names in the Expando to PascalCase?</p>