using JSON.Net like this:
JsonConvert.SerializeObject(someObject,
Newtonsoft.Json.Formatting.None,
new JsonSerializerSettings() {
NullValueHandling = NullValueHandling.Ignore,
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
ContractResolver = new CamelCasePropertyNamesContractResolver()
});
How much camel caseing does JSON.Net do?
Does it just lowercase letters starting at the beginning of the word?
Examples:
- somePropertyId -> somePropertyId
- somePropertyID -> somePropertyID
- SOMEPropertyID -> somePropertyID
- SOMEPROPERTYID -> somepropertyid