public JsonObject getJsonObject(int index) throws JsonException {
        JsonElement el = get(index);
        if (!el.isJsonObject()) {
            throw Util.typeMismatch(index, el, "JsonObject");
        }
        return el.asJsonObject();
    }
public JsonObject getJsonObject ( int index ) throws JsonException { JsonElement el = get ( index ) ; if ( ! el . isJsonObject ( ) ) { throw Util . typeMismatch ( index , el , "JsonObject" ) ; } return el . asJsonObject ( ) ; }
Returns the value at {@code index} if it exists and is a {@code
JsonObject}.

@throws JsonException if the value doesn't exist or is not a {@code
JsonObject}.