Is it possible to count the number of members using JsonPath?
Using spring mvc test I\'m testing a controller that generates
{\"foo\": \"oof\", \"ba
You can also use the methods inside the jsonpath, so instead of
mockMvc.perform(get(API_URL)) .andExpect(jsonPath("$.*", hasSize(2)));
you can do
mockMvc.perform(get(API_URL)) .andExpect(jsonPath("$.length()", is(2)));