I created a model:
public class UserRequest extends DefaultRequest { public String username; public String password; public String id; public Us
Not too familiar with Gson, but I don't think Gson would write null values to an json file. If you initialize the id like:
String id = "";
you may get an empty string in there. But you will not get a null value into a .xml file.