You can pass JsonSerialier setting as:
var jsonSerializerSettings = new JsonSerializerSettings();
jsonSerializerSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter());
JsonConvert.SerializeObject(userObject, jsonSerializerSettings);
Posted On:
14-Jul-2020 01:05