Browse Source

convert rather than cast to List

pull/22/head
Jochen Berger 12 years ago
parent
commit
3cd4c3c2aa
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/filter/ArrayQueryFilter.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/filter/ArrayQueryFilter.java

@ -34,7 +34,7 @@ public class ArrayQueryFilter extends PathTokenFilter {
Filter filter = filters.poll();
return filter.doFilter((List)obj, jsonProvider);
return filter.doFilter(jsonProvider.toList(obj), jsonProvider);
}

Loading…
Cancel
Save