Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.9.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Similiar to JACKSON-193 it would be nice to be able to serialize/deserialize an enum by an integer value instead of a string.
See attached example. The getId method with the @JsonValue annotation already works for serialization but the fromId method with the @JsonCreator annotation is ignored as long as the argument is not a string.
Ok. So slight variation of
JACKSON-749? (which was implemented for 2.0.0)