Last active
February 27, 2019 17:15
-
-
Save marcosabel/462b79ed3269d8d5aed3c2b61ef2469e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.annotation.JsonFormat; | |
@JsonFormat(shape = JsonFormat.Shape.OBJECT) | |
public enum JacksonExampleEnum { | |
OPTION_1("0", "0"), OPTION_2("1", "1"); | |
private String a; | |
private String b; | |
JacksonTestEnum(String a, String b) { | |
this.a = a; | |
this.b = b; | |
} | |
public String getA() { | |
return a; | |
} | |
public String getB() { | |
return b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment