
Deserialize a JSON string into a Java object using Jackson's ObjectMapper and readValue, mapping keys name and number to the volleyball player class and avoiding mismatches that trigger exceptions.
Learn to serialize a Java list to a JSON string using Jackson's ObjectMapper and writeValueAsString, turning a simple list into a JSON array.
Learn to serialize a Java map into a json string using Jackson's ObjectMapper and the writeValueAsString method by populating a hash map of country capitals.
Learn how the @JsonAlias annotation resolves naming mismatches during deserialization by mapping multiple incoming keys to class fields, and see how aliases prevent unrecognized field errors.
Learn how the JsonIgnore annotation excludes fields from a Java object's serialized json using Jackson's object mapper, shown by omitting country of origin from the Apple object.
Let's make things easy! In this quick-start course, students will learn how to use Jackson to serialize and deserialize JSON. Import statements, Jackson classes and methods and program output will be illustrated and explained. By the end of the course, students will be able to serialize Java objects into JSON, deserialize JSON into Java objects, and will know how to avoid programming errors. The course is taught by a straight-A Ivy League graduate with industry experience in the subject matter.