I want to have all my enum object capital. how to make it case insensitive.
HTTP body to JSON node and then node to a class object
JsonNode asJson = request().body().asJson();
WhatsappIncomingMessageVO requestVO = JsonParserUtils.fromJson(asJson, WhatsappIncomingMessageVO.class);
the json has lower case string "location" which i want map with LOCATION of below enum the class contains one enum which is :
public enum WhatsAppMessageType {
TEMPLATE("TEMPLATE"),
TEXT("TEXT"),
IMAGE("image"),
VIDEO("video"),
AUDIO("audio"),
@JsonProperty("json")
LOCATION("location");