I have an Enum marked with @JsonProperty for JSON serialization/deserialization with Jackson and would like to get the enum value for a given String JsonProperty:
The desired result can be achieved through the following method:
public static > T getEnumValueFromJsonProperty(Class enumClass, String jsonPropertyValue) { Field[] fields = enumClass.getFields(); for (int i=0; i