I am using REST web service/Apache Wink with Jackson 1.6.2. How do I annotate an enum field so that Jackson deserializes it?
Inner class
public enum BooleanField { BOOLEAN_TRUE { public String value() { return "1";} }, BOOLEAN_FALSE { public String value() { return "0";} }, Java Bean/Request object
BooleanField locked; public BooleanField getLocked() {return locked;} The Jackson docs state that it can do this via @JsonValue/@JsonCreator but provides no examples.
Anyone willing to spill the (java)beans, as it were?