Jackson is a popular Java library for handling JSON data. It provides a rich set of annotations that can be…