How to search/find In JSON with java

You can also use the JsonPath project provided by REST Assured. This JsonPath project uses Groovy GPath expressions. In Maven you can depend on it like this: <dependency> <groupId>com.jayway.restassured</groupId> <artifactId>json-path</artifactId> <version>2.4.0</version> </dependency> Examples: To get a list of all book categories: List<String> categories = JsonPath.from(json).get(“store.book.category”); Get the first book category: String category = JsonPath.from(json).get(“store.book[0].category”); Get … Read more