Jackson enum Serializing and DeSerializer
I’m using JAVA 1.6 and Jackson 1.9.9 I’ve got an enum public enum Event { FORGOT_PASSWORD(“forgot password”); private final String value; private Event(final String description) { this.value = description; } @JsonValue final String value() { return this.value; } } I’ve added a @JsonValue, this seems to do the job it serializes the object into: {“event”:”forgot … Read more