diffPayloads static method
Return changed JSON paths between raw and normalized.
This is useful for developer tooling and previews that need to explain what normalizePayload changed before rendering.
Implementation
static List<PayloadDiff> diffPayloads(
Object? raw,
Object? normalized, {
int maxInlineLength = 56,
}) {
final out = <PayloadDiff>[];
_collectPayloadDiffsRecursive(raw, normalized, r'$', out, maxInlineLength);
return out;
}