Expand description
Recursive diff of two SLOP trees producing JSON Patch operations.
Paths in generated ops use node IDs for children segments (not array indices), matching the SLOP patch convention.
Functions§
- diff_
nodes - Recursively diff two trees and return patch operations.
- escape_
pointer_ segment - RFC 6901 JSON Pointer escape for property-key segments. Node ID segments must not contain ‘/’ or ‘~’ and are not escaped.
- unescape_
pointer_ segment - Reverse of
escape_pointer_segment.