Skip to main content

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