GSON: Comment obtenir un élément insensible à la casse de Json?

Code ci-dessous fonctionne bien lorsque JSON objet contient jsonKey comme il a été passé à la méthode. Je me demande ... si il y a un moyen d'obtenir une valeur attribuée à un casse représentation d'une clé?

Exemple:

public String getOutputEventDescription(JsonElement outputEvent) throws ParserException {
    return retrieveString(outputEvent, DESCRIPTION);
}

Devrait fonctionner indépendamment de savoir si la DESCRIPTION est définie comme "Description", "description" ou "DeScRipTIOn"

protected String retrieveString(JsonElement e, String jsonKey) throws ParserException {

JsonElement value = e.getAsJsonObject().get(jsonKey);

if (value == null) {
    throw new ParserException("Key not found: " + jsonKey);
}

if (value.getAsString().trim().isEmpty()) {
    throw new ParserException("Key is empty: " + jsonKey);
}

return e.getAsJsonObject().get(jsonKey).getAsString();
}

source d'informationauteur JAM