diff --git a/docs/api.md b/docs/api.md index b4cd003..14a90f6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -17,7 +17,7 @@ You can set the filter like this: ``` Expression e = new Parser(reader) .withObjectFilter(filter) - .parse(); + .compile(); ``` The filter can be either a string containing JSLT. The JSLT expression @@ -25,7 +25,7 @@ needs to return `true` for the object values that should be included. So to get the default behaviour you would set the filter to: ``` -. == null or . == {} or . == [] +. == null or . == {} or . == [] or not(.) == false ``` If you simply want no object keys to ever be omitted, set it to: