
Learn how Jackson, the JSON processor, serializes Java objects to JSON and deserializes JSON back to Java objects, with fast, lightweight performance and practical, code-level examples.
Learn to serialize a Java object into a JSON string using Jackson's ObjectMapper, mapping fields to JSON keys via public getters and setters.
Learn how to serialize a Java object into a JSON file using Jackson's object mapper, including a basketball player object with name and number, and write to outFile.json.
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.
Deserialize a json file into a Java object with Jackson's ObjectMapper and readValue, mapping keys to the volleyball player class fields to avoid mismatches.
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.
Use Jackson's @JsonIgnore to skip updating selected fields during deserialization. Map json fields only to corresponding Java object fields; otherwise, extra json fields without a home trigger unrecognized field errors.
Serialize Java objects that contain other Java objects using Jackson's object mapper. Enable pretty printing to produce readable JSON for a car with an engine, cylinders, and horsepower.
Learn to deserialize JSON data into Java objects, including nested objects, using Jackson's ObjectMapper. Map keys to fields and see how extra fields or unrecognized fields cause errors.
Conclude the Jackson Quick Start course by showing how to serialize and deserialize JSON with the ObjectMapper, including single objects and collections, with readable output and error avoidance.
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.