This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tree" : { | |
"nodeName" : "NODE NAME 1", | |
"name" : "NODE NAME 1", | |
"type" : "type3", | |
"code" : "N1", | |
"label" : "Node name 1", | |
"version" : "v1.0", | |
"link" : { | |
"name" : "Link NODE NAME 1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsondiff = (function() { | |
// Patch helper functions | |
function getParent(paths, path) { | |
return paths[path.substr(0, path.match(/\//g).length)]; | |
} | |
// Checks if `obj` is an array or object | |
function isContainer(obj) { | |
return _.isArray(obj) || _.isObject(obj); |