mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
19 lines
557 B
C#
19 lines
557 B
C#
|
using Newtonsoft.Json;
|
||
|
|
||
|
namespace BTCPayServer.Abstractions
|
||
|
{
|
||
|
public class CamelCaseSerializerSettings
|
||
|
{
|
||
|
static CamelCaseSerializerSettings()
|
||
|
{
|
||
|
Settings = new JsonSerializerSettings()
|
||
|
{
|
||
|
ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
|
||
|
};
|
||
|
Serializer = JsonSerializer.Create(Settings);
|
||
|
}
|
||
|
public static readonly JsonSerializerSettings Settings;
|
||
|
public static readonly JsonSerializer Serializer;
|
||
|
}
|
||
|
}
|