You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
JsonDiff.diff() no longer requires both sides of an object/array to be the exact same Java runtime class in order to recurse into them. Previously, two Maps (or two Lists) with identical structure but different concrete implementations - e.g. JsonParser's LinkedHashMap/ArrayList on one side and a hand-built Map.of(...)/List.of(...) on the other, a common pattern when diffing parsed JSON against an "expected" value in a test - were reported as one coarse CHANGED entry for the entire value instead of being diffed key-by-key / index-by-index. Recursion now keys off JSON "kind" (instanceof Map / instanceof List) instead of exact class equality.