using System.Text.Json.Serialization; namespace File_Watcher.Models; public record Test(string Name, long Value); [JsonSourceGenerationOptions(WriteIndented = true)] [JsonSerializable(typeof(Test[]))] internal partial class TestCollectionSourceGenerationContext : JsonSerializerContext { }