I am reading in a JSON file (using Google's `GSON`). One of my tests checks program's behavior in event file a given key is missing.

```
JsonElement value = e.getAsJsonObject().get(ENVIRONMENT);

```

My expectation is that when .get(ing) this key, i would get `null`. Turns out i do. When i `.get(ENVIRONMENT)`, value returned is `null`.

When i test it, i actually get a "**not null**". Weird, considering, GSON's javadoc says "**provides check for verifying if this element represents a null *value* or not**"

```
if (value.isJsonNull()) {
    System.out.println("null");
} else {
    System.out.println("not null");
}

```

Please help me better understand this.