18 lines
489 B
C#
18 lines
489 B
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
namespace Brizco.Common.Extensions
|
|
{
|
|
public static class NewtonJsonExtensions
|
|
{
|
|
public static JsonSerializerSettings CamelCaseSerialize =>
|
|
new()
|
|
{
|
|
ContractResolver = new DefaultContractResolver
|
|
{
|
|
NamingStrategy = new CamelCaseNamingStrategy()
|
|
},
|
|
Formatting = Formatting.Indented
|
|
};
|
|
}
|
|
} |