In a jQuery AJAX request, you can output the response HTML data using the .html() method.
To return a JSON object as a response in Spring Boot, you can use the @ResponseBody annotation and the ObjectMapper class.