0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-13 09:50:44 -05:00

21 lines
655 B
C#
Raw Normal View History

using System.Text.Json;
2023-08-12 19:08:38 +01:00
using System.Text.Json.Serialization;
using LootDumpProcessor.Serializers.Json.Converters;
2023-08-12 19:08:38 +01:00
namespace LootDumpProcessor.Serializers.Json;
public static class JsonSerializerSettings
2023-08-12 19:08:38 +01:00
{
public static readonly JsonSerializerOptions Default = new(JsonSerializerDefaults.Web)
2023-08-12 19:08:38 +01:00
{
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
2023-08-12 19:08:38 +01:00
Converters =
{
new NetJsonKeyConverter(),
new JsonStringEnumConverter(),
new NetDateTimeConverter()
},
WriteIndented = true
2023-08-12 19:08:38 +01:00
};
}