Retrofit 2 is a HTTP client written in java. It is a type safe library that makes HTTP calls and parses them to java interfaces for you.
This is a sample implementation of Retrofit in an android application. For step by step instructions about what is happening, refer to the blog post: https://www.wisdomgeek.com/development/android-development/retrofit-2-parsing-json-android/