Browse Source

Merge pull request #59 from adjohnson916/map-put-typo

fix typo for map put exception message as array add
pull/60/head
kallestenflo 10 years ago
parent
commit
84a291774a
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java

@ -100,7 +100,7 @@ public abstract class PathRef implements Comparable<PathRef> {
if(configuration.jsonProvider().isMap(parent)){
configuration.jsonProvider().setProperty(parent, key, newVal);
} else {
throw new InvalidModificationException("Invalid add operation. $ is not an array");
throw new InvalidModificationException("Invalid put operation. $ is not a map");
}
}
}

Loading…
Cancel
Save