Uses `Gson.fromJson(..., TypeToken<T>)` instead of `fromJson(..., Type)` Also replaces some usage of the deprecated `JsonParser()` constructor.