1 min readJul 26, 2019
GSON lets you automate JSON parsing by using defined classes (that can be auto-generated from JSON directly with http://www.jsonschema2pojo.org/ ) so that you don’t need to mess around with JsonArrayResponse and JsonObjectResponse then manually retrieving data by String keys. Of course, this works best if the API is well-formed JSON and can be parsed in such a manner. We used Swagger previously to define a JSON schema that would be non-dynamic and therefore easy to parse.