FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Document that @JsonProperty can be used to specify the value for enum constants #96

Closed Raniz85 closed 8 years ago

Raniz85 commented 8 years ago

This should be documented in @JsonProperty:

public enum MyEnum {
    @JsonProperty("theFirstValue") THE_FIRST_VALUE,
    @JsonProperty("another_value") ANOTHER_VALUE;
}
cowtowncoder commented 8 years ago

Added explanation; will need to re-push 2.8 javadocs.