Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 164aaf1f authored by Brett Zamir's avatar Brett Zamir
Browse files

Allow for object-style parameters, "json" and "path"

parent dce1969a
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ function JSONPath (opts, obj, expr) { ...@@ -45,7 +45,7 @@ function JSONPath (opts, obj, expr) {
this.sandbox = opts.sandbox || {}; this.sandbox = opts.sandbox || {};
if (opts.autostart !== false) { if (opts.autostart !== false) {
return this.evaluate(obj, expr); return this.evaluate(obj || opts.json, expr || opts.path);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment