AccountingNext/Schaad.Accounting.Db/JsonStorage.cs
Claudio Schaad eacb7cf804 Remove XML-to-JSON data migration
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>
2026-10-22 14:06:05 +02:00

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
};
}
}