You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
刘明熹 23108abf64 flask 4 years ago
..
.bower.json flask 4 years ago
LICENSE flask 4 years ago
README.md flask 4 years ago
json-diff.js flask 4 years ago
test.js flask 4 years ago

README.md

json-diff

Create RFC 6902 style patches between JSON objects.

For example, json_diff({a: [9, 7]}, {a: [9, 8, 7]}) results in [{op: 'add', path: '/a/1', value: 8}].

No cyclic references are allowed in the objects being compared. The algorithm computes differences between arrays in a way similar to the diff utility, so it will become slow for large arrays of complex objects.