Asserting array of arrays with JSONPath and spring mvc
How about adding several andExpect methods? Something similar to: mockMvc.perform(get(“https://stackoverflow.com/”)).andDo(print()).andExpect(status().isOk()) .andExpect(jsonPath(“$.links[0].rel[0]”, is(“self”))) .andExpect(jsonPath(“$.links[0].href[0]”, is(“https://stackoverflow.com/”));