I need to connect to a JSON interface for which I have a XSD specification of its objects.
I can generate the POCO's from the XSD using xsd.exe
, but these POCOS have UpperCamelCase properties. If I serialize them to JSON I get UpperCamelCase properties instead of the desired lowerCamelCase.
My workaround was to manually annotate the POCO's with JsonProperty
attributes, but that means that if I need to regenerate the objects due to some change in the XSD I will lose my annotations.
Is there some way to automate this?