Structural diff for JSON files
CoffeeScript
Pull request Compare This branch is 5 commits ahead, 33 commits behind andreyvit:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.coffee
package.json

README.md

JSONdiff.js

JSONdiff.js is a port of JSONdiff from Java to JavaScript (actually CoffeeScript), also extended to support JSON pointer.

Usage

jsonDiff = require 'jsondiff'
instance =
  a: 1
  b: 2
diff =
  '/a': 2
  '-/b': 0
instance2 = jsonDiff.parse instances, diff
instance2.a is 2
instance2.b is undefined

License

MIT