mirror of
https://github.com/sp-tarkov/loot-dump-processor.git
synced 2025-02-13 09:50:44 -05:00
![BlueXTX](/assets/img/avatar_default.png)
* Improved thread safety and async processing in dump processor components * Removed unused _processedDumps field and simplified variable scope in QueuePipeline
20 lines
625 B
C#
20 lines
625 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
using LootDumpProcessor.Serializers.Json.Converters;
|
|
|
|
namespace LootDumpProcessor.Serializers.Json;
|
|
|
|
public static class JsonSerializerSettings
|
|
{
|
|
public static readonly JsonSerializerOptions Default = new(JsonSerializerDefaults.Web)
|
|
{
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
|
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
|
|
Converters =
|
|
{
|
|
new NetJsonKeyConverter(),
|
|
new JsonStringEnumConverter(),
|
|
new NetDateTimeConverter()
|
|
}
|
|
};
|
|
} |