Retrofit 2 — Handling of Empty Server Responses with Custom Converter
Some APIs return an empty response body to signal the client that there is no object. Retrofit's converters can trip over that, because it can be an invalid representation in their respective data format. For example, an empty object needs to be {} in JSON. In this tutorial you'll learn how …
Continue Reading