|
|
@ -35,7 +35,7 @@ public class FieldFilter extends PathTokenFilter { |
|
|
|
public Object filter(Object obj, JsonProvider jsonProvider, LinkedList<Filter> filters, boolean inArrayContext) { |
|
|
|
public Object filter(Object obj, JsonProvider jsonProvider, LinkedList<Filter> filters, boolean inArrayContext) { |
|
|
|
if (jsonProvider.isList(obj)) { |
|
|
|
if (jsonProvider.isList(obj)) { |
|
|
|
if (!inArrayContext) { |
|
|
|
if (!inArrayContext) { |
|
|
|
return null; |
|
|
|
throw new InvalidPathException("Trying to access field on array"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
List<Object> result = jsonProvider.createList(); |
|
|
|
List<Object> result = jsonProvider.createList(); |
|
|
|
for (Object current : jsonProvider.toList(obj)) { |
|
|
|
for (Object current : jsonProvider.toList(obj)) { |
|
|
|