From 8f493bbc303eb8fde78afa494127e4de64807d8b Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Sat, 22 Aug 2015 17:38:26 +0200 Subject: [PATCH] Returns all datum if no filter are set. --- jsonpath_rw_ext/_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonpath_rw_ext/_filter.py b/jsonpath_rw_ext/_filter.py index f54dd61..cc10482 100644 --- a/jsonpath_rw_ext/_filter.py +++ b/jsonpath_rw_ext/_filter.py @@ -35,7 +35,7 @@ class Filter(jsonpath_rw.JSONPath): def find(self, datum): if not self.expressions: - return [] + return datum datum = jsonpath_rw.DatumInContext.wrap(datum) return [jsonpath_rw.DatumInContext(datum.value[i],