Let’s start by discussing Gson; Gson is a Java-based library that converts raw JSON into Java classes–a key piece of…