I\'d like to have JSON \'properly\' serialized (camelCase), and the ability to change date formats if necessary.
For Web API it is very easy - in the Global.asax I
Note that below information is for Asp .Net core
.Net team has recently announced that MVC now serializes JSON with camel case names by default.
With couple of lines below you would be able to enable this functionality:
services
.AddMvc()
.AddJsonOptions(options =>
options.SerializerSettings.ContractResolver = new DefaultContractResolver());
I wrote little blog on the same which is here.