We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa81fd commit 548cfd5Copy full SHA for 548cfd5
1 file changed
jsonpointer.js
@@ -47,7 +47,7 @@ var get = function(obj, pointer) {
47
var set = function(obj, pointer, value) {
48
validate_input(obj, pointer);
49
if (pointer === "/") {
50
- throw("Cannot modify the value of a parameter.");
+ return obj;
51
} else {
52
pointer = pointer.split("/").slice(1);
53
return traverse(obj, pointer, value);
0 commit comments