I hava a JAVA EE backend and I am using Spring MVC. I have a AJAX call like this:
function getAllProjects() { $.getJSON(\"project/getall\", function(
You need to read Chapter 15.5 of the Spring User Guide which describes how to configure MVC views, and Chapter 16.10 which briefly describes the JSON Mapping View. Then read the javadocs for MappingJacksonJsonView etc.
MappingJacksonJsonView