Returning Empty JSON Object in Spring Framework
February 17, 2015 by Bo Andersen
Sometimes you may want to return an empty JSON object from a Spring Framework controller action, be it in a REST API or just a regular controller action. This could for example be the case if you are issuing an AJAX request from jQuery; if you specify the data type to be JSON, the success handler… read more