Close
« Tutorial

Spring MVC - JSON to Object Conversion with Jackson 2 MCQ

0/13
0 ✓
0 ✗

1. What does Spring MVC use to convert a JSON message body to a Java object?

2. Which annotation on a controller method parameter tells Spring to convert the HTTP request body into a Java object?

3. Which annotation makes Spring write the return value of a controller method directly to the HTTP response body?

4. Which message converter does Spring use to convert JSON with the Jackson 2 library?

5. When does Spring activate its Jackson 2 JSON message converter automatically?

6. What happens if jackson-databind is missing from the classpath?

7. Which @RequestMapping attribute limits a handler method to requests whose body has a given content type, such as JSON?

8. What does the produces attribute of @RequestMapping specify?

9. Which constant represents the JSON media type value in Spring's MediaType class?

10. Which HTTP request header tells the server that the request body contains JSON?

11. A controller method has @ResponseBody and returns a List of objects. The JSON converter is active. What does the response body look like?

12. What is the status of MappingJackson2HttpMessageConverter as of Spring Framework 7.0?

13. Which converter is the replacement for MappingJackson2HttpMessageConverter in Spring Framework 7?

14. In which Spring Framework version is the removal of MappingJackson2HttpMessageConverter planned?

Join