JSON Serialization
Learn JSON Serialization (REST API with Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Serialization is turning a Java object into JSON text; in Spring MVC it happens when a controller returns an object. Property discovery : Jackson uses public getters (or record components) to find properties and their names. Result : nested objects become nested JSON objects and collections become arrays.
More lessons in REST API with Spring MVC
- REST Architecture
- RESTful API Design
- REST Controller
- @RestController
- JSON Request
- JSON Response
- Jackson
- ObjectMapper
- JSON Deserialization
- HttpMessageConverter
- MappingJackson2HttpMessageConverter
- ResponseEntity
- HTTP Status Codes
- API Versioning
- REST API Best Practices
- Mini Project: REST Details: PUT vs PATCH, Pagination, ETag and Allowed Methods