1.4-Software-Development-Principles

Deserializing JSON

We are going to practice deserializing a JSON object with Jackson

Assignment

Create a new IntelliJ project and add the Jackson library to the project.

Write a program that reads in a JSON file representing a book and then prints the information of the file to stdout:

The JSON file:

 {
    "title": "To Kill a Mockingbird",
    "author": "Harper Lee",
    "year": 1960
}

The output of the program would look something like this

Title: To Kill a Mockingbird
Author: Harper Lee
Year: 1960