Validate LocalDate in JSON response with Spring MockMVC
问题 I'm trying to validate a LocalDate object in a JSON result returned by a Spring MVC webservice but I can't figure out how. At the moment I always run into assertion errors like the following one: java.lang.AssertionError: JSON path "$[0].startDate" Expected: is <2017-01-01> but: was <[2017,1,1]> The important part of my test is posted below. Any ideas how to fix the test to pass? import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; public class