I have an abstract type from which derives many others. On this abstract type I have a custom attribute [JsonConverter(typeof(BasicJsonConverter))]
, BasicJsonConverter override method Create
of class AbstractJsonConverter
(class is inspired from here).
Now my problem is that in GET calls json is camel cased which is good, but for POST or PUT calls json is pascal cased. I've tried to register it in GlobalConfig or in WebApiConfig like this:
json.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
but no result.
Any help to get all calls camel cased will be much appreciated.