JSON Deserialization
Learn JSON Deserialization (REST API with Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Deserialization is turning JSON text into a Java object; in Spring MVC it happens for @RequestBody parameters. How : Jackson creates the object through a constructor (or no-args constructor) and fills properties by name. Mapping : JSON keys match Java property names; types are converted, for example a number to int .
More lessons in REST API with Spring MVC
- REST Architecture
- RESTful API Design
- REST Controller
- @RestController
- JSON Request
- JSON Response
- Jackson
- ObjectMapper
- JSON Serialization
- HttpMessageConverter
- MappingJackson2HttpMessageConverter
- ResponseEntity
- HTTP Status Codes
- API Versioning
- REST API Best Practices
- Mini Project: REST Details: PUT vs PATCH, Pagination, ETag and Allowed Methods