Open cgraham-rs opened 2 years ago
@benjamine Could you please provide an example on how to use propertyFilter? Your help much appreciated.
@cgraham-rs try this. it worked. https://github.com/benjamine/jsondiffpatch/issues/258#issuecomment-1044456667
I'm looking to exclude specific keys from nested objects being included in the diff but am struggling to understand how to successfully implement
propertyFilter
to accomplish this. Could someone provide a clear code example?From the example data below I'd like to exclude:
surface
demographics.population
countries[].independence
Example data taken from live demo: