Use JsonConverter attribute with converter or factory on both JsonPatchDocument.cs and JsonPatchDocumentOfT.cs
...
[JsonConverter(typeof(JsonPatchDocumentConverter))]
public class JsonPatchDocument : IJsonPatchDocument
...
...
[JsonConverter(typeof(JsonPatchDocumentConverterFactory))]
public class JsonPatchDocument<TModel> : IJsonPatchDocument where TModel : class
...
If this is done, we don't have to set JsonSerializerOptions.
Use
JsonConverter
attribute with converter or factory on bothJsonPatchDocument.cs
andJsonPatchDocumentOfT.cs
If this is done, we don't have to set
JsonSerializerOptions
.