private static boolean isArrayOfObjects(TokenBuffer buffer) {
        if (buffer.current() != JsonToken.START_ARRAY) return false;
        Supplier<Token> lookahead = buffer.lookahead();
        Token next;
        while ((next = lookahead.get()).token == JsonToken.START_ARRAY) { }
        return next.token == JsonToken.START_OBJECT;
    }
Reads a tensor value directly at the root, where the format is decided by the tensor type.
document/src/main/java/com/yahoo/document/json/readers/TensorReader.java