Skip to content

Commit

Permalink
Added support for custom functions. Fixes dvdln#7.
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenjanssen committed Apr 5, 2017
1 parent e33f4f1 commit 8d021d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jsonpath-object-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
case 'object':
fn = seekObject;
break;

case 'function':
fn = path;
break;
}

if (fn) {
Expand Down

0 comments on commit 8d021d0

Please sign in to comment.