Browse Source

fix typo for map put exception message as array add

pull/59/head
Anders D. Johnson 10 years ago
parent
commit
8ce94c22ae
  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