Skip to main content

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