As such, I am developing a web application with spring boot and I can not find a way to return the result of a jpa query in json format using an ajax request. If I create an instance of one of my entities and return it in the controller with @ResponseBody it works perfectly but if I return an ArrayList or that same instance being the result of a query in the repository Spring tool suite hangs.