Android Retrofit + GSON - Enum serialization for API calls - Annoying extra quotation marks added
问题 This problem (this might be by design, who knows - not simple to find a clear answer, at any rate) occurs in both Android Retrofit 1.9 and 2.0, and with the latest GSON library. I have an Enum class like such: public enum SomethingType { @SerializedName("first") First, @SerializedName("second") Second } And using Retrofit (2.0, but same issue with 1.9) along with GSON, I attempt to output the enum instance as such: @Multipart @POST("things") Call<ThingResponse> createThing( @Part("image")