Api/Brizco.Common/Extensions/NewtonJsonExtensions.cs

18 lines
489 B
C#
Raw Normal View History

2023-09-08 12:25:21 +03:30
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
};
}
}