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.
Activity
Tatu Saloranta
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
Tatu Saloranta
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Fix Version/s | 1.9.7 [ 18436 ] | |
| Resolution | Fixed [ 1 ] |
Ok. So slight variation of
JACKSON-749? (which was implemented for 2.0.0)