You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julie May edited this page Sep 13, 2013
·
3 revisions
Welcome to the jsonpath wiki!
Just because this would have saved me quite a bit of time, there are some amazing examples of filtering and asserts at https://code.google.com/p/json-path/
e.g.,
All books with category = "reference"
List books = JsonPath.read(json, "$.store.book[?(@.category == 'reference')]");
List books = JsonPath.read(json, "$.store.book[?]", filter(where("category").is("reference")));