I'm hoping to use an OData endpoint hosted by WCF DataServices in my project calling it from a javascript front-end. It is important that the property names on the JSON objects follow Javascript conventions rather than c# conventions .i.e:
ThisIsAProperty
should end up: thisIsAProperty
Conversely, the c# objects must retain idiomatic c# naming conventions.
It is also important that accomplishing this goal doesn't cause any duplication of intent in my c# code. For example, adding attributes to each property that simply restate the property name in camelCase is not acceptable.
I'm able to accomplish this fairly easily when using ASP.NET MVC and the Newtonsoft JSON serializer by simply flipping a switch while serializing.
Is there such a way to ensure that the data always serializes to JSON with camelCase attribute names?