private DocumentPut createPutWithTensor(String inputTensor, String tensorFieldName) {
        JsonReader streaming = createReader("""
                                         {
                                           "fields": {
                                             "%s": %s
                                           }
                                         }
                                         """.formatted(tensorFieldName, inputTensor));
        DocumentPut lazyParsed = (DocumentPut) streaming.readSingleDocumentStreaming(DocumentOperationType.PUT, TENSOR_DOC_ID).operation();
        JsonReader reader = createReader("""
                                         [
                                           {
                                             "put": "%s",
                                             "fields": {
                                               "%s": %s
                                             }
                                           }
                                         ]""".formatted(TENSOR_DOC_ID, tensorFieldName, inputTensor));
        DocumentPut bufferParsed = (DocumentPut) reader.next();
        assertEquals(lazyParsed, bufferParsed);
        return bufferParsed;
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java