High-performance, low-allocating JSON object diff and patch extension for System.Text.Json. Support generating patch document in RFC 6902 JSON Patch format.
MIT License
102
stars
13
forks
source link
PropertyFilter ignored if a diffed object is null #48
I am using SystemTextJson.JsonDiffPatch 2.0.0 on .Net 8.
Given this
TestClass
, I want diffs to includeCompareMe
and excludeIgnoreMe
.When both
left
andright
are not null, the diff correctly excludesIgnoreMe
.But if one of
left
andright
is null then theJsonDiffOptions.PropertyFilter
function doesn't run and the diff includesIgnoreMe
.