Skip to content
Browse files

unescape parts of the path

  • Loading branch information...
1 parent fd6670e commit 4f23a963ab32fdf8af03b771e617beefe9ae4181 @benatkin benatkin committed Jul 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsonpointer.js
View
2 jsonpointer.js
@@ -2,7 +2,7 @@ var console = require("console");
var traverse = function(obj, pointer, value) {
// assert(isArray(pointer))
- var part = pointer.shift();
+ var part = unescape(pointer.shift());
if(typeof obj[part] !== "undefined") {
if(pointer.length == 0) { // we're done
if(typeof value !== "undefined") { // set new value, return old value

0 comments on commit 4f23a96

Please sign in to comment.
Something went wrong with that request. Please try again.