WEBINAR:
On-Demand
Building the Right Environment to Support AI, Machine Learning and Deep Learning
Use the CamelCasePropertyNamesContractResolver class of the Newtonsoft.Json assembly to return the JSON serialized string in camel case.
var responseObject = employeeProxy.GetAllEmployees();
var serializedObjectInCamelCase = JsonConvert.SerializeObject(responseObject,
new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver()
});
Visit the DevX Tip Bank