leogong / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

serialize and deserialize simple enum #515

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How can i serialize and deserialize a simple enum like this ?

public enum Color {

    RED, BLUE, YELLOW;
}

Thanks !

Original issue reported on code.google.com by trabajoe...@gmail.com on 24 May 2013 at 4:51

GoogleCodeExporter commented 9 years ago
Duplicate of 
http://stackoverflow.com/questions/16740078/serialize-and-deserialize-enum-with-
gson

Original comment by Maaarti...@gmail.com on 12 Aug 2014 at 5:05