pub fn diff_shadow_mismatch_json(
cached: &Value,
source: &Value,
) -> MismatchJsonDiffExpand description
The built-in difference computation over two JSON values.
Objects recurse over the union of their member names in UTF-16 code-unit
order, and a member present on one side only is reported at its pointer
with that side. Arrays of equal length recurse by index; arrays of
different length are reported once at their own pointer. Any other
differing pair, roots of different kinds included, is reported at its
pointer with both sides, and a differing pair of containers at
SHADOW_MISMATCH_MAX_DEPTH
reference tokens is reported whole without descending. Numbers compare by
value as doubles, so 1 and 1.0 are equal. Entries keep walk order and
are cut at
SHADOW_MISMATCH_MAX_ENTRIES;
count is the uncut total. Each pointer is clamped to
SHADOW_MISMATCH_PATH_MAX_BYTES,
and a side whose JSON exceeds
SHADOW_MISMATCH_SIDE_MAX_BYTES
becomes its clamped JSON text as a string.