This is what I have:
using Newtonsoft.Json;
var json = \"{\\\"someProperty\\\":\\\"some value\\\"}\";
dynamic deserialized = JsonConvert.DeserializeObject(j
For newtonsoft add this attribute to your properties:
[JsonProperty("schwabFirmId")]
A simpler option (since you just need to do it once per class) if you are up for including MongoDB: try adding a reference to MongoDB.Bson.Serialization.Conventions.
Then add this in your model constructor:
var pack = new ConventionPack { new CamelCaseElementNameConvention(), new IgnoreIfDefaultConvention(true) };
ConventionRegistry.Register("CamelCaseIgnoreDefault", pack, t => true);
Either one will keep your favorite C# properties PascalCased and your json camelCased.
Deserializing will treat the inbound data as PascalCased and serializing will change it into camelCase.