deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

Is there a way to systematically cycle through all corresponding attributes that haven't changed?

Open codingbutstillalive opened this issue 1 year ago • 1 comments

In my case, I need to check all unchanged values to see if they were empty (i.e. "") or non-empty (i.e. some number or string other than "") to implement a logic that distinguishes between True Positive and False Negatives. I am struggling with the nested structures of the JSON objects to be compared with each other.

codingbutstillalive avatar Jan 26 '24 15:01 codingbutstillalive

Hi @codingbutstillalive This questions comes up from time to time. DeepDiff currently doesn't give you a way to do so. In a nested object, how do you expect the report to what has stayed the same to be? Only the leaf nodes of the tree?

seperman avatar Feb 04 '24 06:02 seperman