public Json field(String field) {
        requireType(Type.OBJECT);
        return new Json(inspector.field(field), path.isEmpty() ? field : "%s.%s".formatted(path, field));
    }
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