src/Quartz.Serialization.Json/README.md
Quartz.Serialization.Json provides JSON serialization for ADO.NET job stores using Json.NET.
Tip: For new projects consider Quartz.Serialization.SystemTextJson, which uses
System.Text.Json. JSON is the recommended persistent format; also setUseProperties = trueto keep job data map values as strings.
dotnet add package Quartz.Serialization.Json
Using the scheduler builder:
var config = SchedulerBuilder.Create();
config.UsePersistentStore(store =>
{
store.UseProperties = true;
store.UseGenericDatabase(dbProvider, db => db.ConnectionString = "my connection string");
store.UseNewtonsoftJsonSerializer();
});
Or via properties (newtonsoft is the preferred alias from Quartz 3.10 onwards):
quartz.serializer.type = newtonsoft
š Full documentation, including migrating from binary serialization and customizing serialization: https://www.quartz-scheduler.net/documentation/quartz-3.x/packages/json-serialization.html