public Json entry(int index) {
        requireType(ARRAY);
        return new Json(inspector.entry(index), "%s[%d]".formatted(path, index));
    }
A {@link Slime} wrapper that throws {@link InvalidJsonException} on missing members or invalid types.

@author bjorncs
vespajlib/src/main/java/ai/vespa/json/Json.java