Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
Not very helpful stack trace. This is fixed in version 0.9, soon to be
released.
New stack trace:
com.jayway.jsonpath.InvalidPathException: The path fragment '[?(@.template.@key
=='foo')]' can not be applied to a JSON object only a JSON array.
at com.jayway.jsonpath.internal.filter.ArrayEvalFilter.filter(ArrayEvalFilter.java:56)
...
The main issue with your path is that you try to filter a JSON object
$.projects (a Map) with a Array filter.
Is there a typo in your sample json? If not try $.project.field[*].@key
Original comment by kalle.st...@gmail.com
on 20 Aug 2013 at 10:56
Original issue reported on code.google.com by
matthias...@zeutschel.de
on 9 Jan 2013 at 7:36Attachments: