// Deserialize JSON to User object User user = gson.fromJson(jsonString, User.class);

public void setUserEmail(String userEmail) { this.userEmail = userEmail; } } To download and deserialize User data:

Consider a simple VOAR model for a User object:

// Assume 'jsonString' is the downloaded JSON data String jsonString = "{\"name\":\"John\",\"email\":\"john@example.com\"}";

public class User { @SerializedName("name") private String userName;