Forum Discussion

Lucian's avatar
Lucian
Community Hero
7 years ago

Sharing is caring - groovy script to count json elements found by a jsonPath query

Following Olga_T's suggestion here is a script to count the number of elements found by a jsonPath query:   import static com.jayway.jsonpath.JsonPath.parse // Define a method to count the numbe...