All data folders are migrated, so drop DataMigrator, its tests and the startup call, plus the old-layout year-folder filter in GetMandators. Bank-statement XML import is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
688 B
C#
21 lines
688 B
C#
using System.Text.Encodings.Web;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Schaad.Accounting.Repositories
|
|
{
|
|
/// <summary>
|
|
/// Serializer settings for the JSON data files.
|
|
/// </summary>
|
|
public static class JsonStorage
|
|
{
|
|
public static readonly JsonSerializerOptions Options = new()
|
|
{
|
|
// Human readable: indented, and umlauts/quotes written as-is instead of \u escapes.
|
|
WriteIndented = true,
|
|
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
|
|
PropertyNameCaseInsensitive = true,
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
|
|
};
|
|
}
|
|
}
|