lib/json_schema.js
function(path, obj) {
    if(path == '#') return obj;
    path = path.substr(1);
    var parts = path.split('/');
    parts.shift();

    // Locate object
    for(var i = 0; i < parts.length; i++) {
      obj = obj[parts[i]];
    }

    return obj;
  }
function(path, obj) {
    if(path == '#') return obj;
    path = path.substr(1);
    var parts = path.split('/');
    parts.shift();

    // Locate object
    for(var i = 0; i < parts.length; i++) {
      obj = obj[parts[i]];
    }

    return obj;
  }
function ( path , obj ) { if ( path == '#' ) return obj ; path = path . substr ( 1 ) ; var parts = path . split ( '/' ) ; parts . shift ( ) ; // Locate object for ( var i = 0 ; i < parts . length ; i ++ ) { obj = obj [ parts [ i ] ] ; } return obj ; }
Let's resolve the path
Let s resolve the path