Skip to content
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")));

Clone this wiki locally