How can I test for an empty JSON response from a rest endpoint. I was hoping for something along the lines:
ResultActions actions = mockMvc.perform(..);
actions.andExpect(jsonPath("$", empty()));
obviously this fails as {} is not exactly empty.
Any advice?