I was wondering, what is the common method being used to save
Gson gson = new Gson();
// country is an enum.
String json_country = gson.toJson(country);
You can assotiate your enums with integers and store simple int, look this:
Cast Int to enum in Java (second answer) - also in same way you can do