GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · kasapdev/java-json-diff
Tags
v1.2.0Fix JsonDiff to recurse by JSON kind instead of exact Java class (#1) diffValues() refused to recurse into two Maps (or two Lists) unless they were the exact same concrete Java class, so diffing JsonParser's output (LinkedHashMap/ArrayList) against a hand-built Map.of(...)/List.of(...) of identical shape and content - a natural way to express an "expected" value in a test - collapsed into one coarse CHANGED entry for the whole value instead of the precise per-key/per-index diff. What actually makes a value a JSON object or array is that it's a Map or a List at all, not which implementation produced it, so recursion now keys off instanceof checks. v1.1.0Add edge-case tests for surrogate pairs, leading zeros, duplicate key… …s, and top-level scalar/array diffs Adds 12 new regression tests: surrogate-pair unicode escapes in JsonParser, rejection of leading-zero-followed-by-digit numbers, last-occurrence-wins for duplicate object keys, and JsonDiff behavior on bare top-level scalar/array documents. All existing and new tests pass (compiled and rerun); no bugs were found. |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |